From 5519dd0a143fa7a5b210c7df6889ad59f67a0a1d Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Sat, 21 Jan 2017 22:38:38 -0500 Subject: [PATCH] Do case-insensitive compare when filtering password vars in votes (bug 6578). --- plugins/adminvote.sma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/adminvote.sma b/plugins/adminvote.sma index 92f933aa..59bcb3fd 100755 --- a/plugins/adminvote.sma +++ b/plugins/adminvote.sma @@ -343,7 +343,7 @@ public cmdVote(id, level, cid) trim(quest); - if (contain(quest, "sv_password") != -1 || contain(quest, "rcon_password") != -1) + if (containi(quest, "sv_password") != -1 || containi(quest, "rcon_password") != -1) { console_print(id, "%L", id, "VOTING_FORBIDDEN") return PLUGIN_HANDLED