mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-27 07:15:37 +03:00
Do case-insensitive compare when filtering password vars in votes (bug 6578).
This commit is contained in:
parent
7589c6c578
commit
5519dd0a14
@ -343,7 +343,7 @@ public cmdVote(id, level, cid)
|
|||||||
|
|
||||||
trim(quest);
|
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")
|
console_print(id, "%L", id, "VOTING_FORBIDDEN")
|
||||||
return PLUGIN_HANDLED
|
return PLUGIN_HANDLED
|
||||||
|
Loading…
Reference in New Issue
Block a user