Do case-insensitive compare when filtering password vars in votes (bug 6578).

This commit is contained in:
Nicholas Hastings 2017-01-21 22:38:38 -05:00
parent 7589c6c578
commit 5519dd0a14

View File

@ -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