mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-26 06:45:37 +03:00
Merge pull request #86 from xPaw/amx-ban
Trim target in amx_ban to prevent bypassing equali checks
This commit is contained in:
commit
4c1dac3cd5
@ -326,6 +326,7 @@ public cmdAddBan(id, level, cid)
|
|||||||
read_argv(2, minutes, charsmax(minutes))
|
read_argv(2, minutes, charsmax(minutes))
|
||||||
read_argv(3, reason, charsmax(reason))
|
read_argv(3, reason, charsmax(reason))
|
||||||
|
|
||||||
|
trim(arg);
|
||||||
|
|
||||||
if (!(get_user_flags(id) & ADMIN_RCON))
|
if (!(get_user_flags(id) & ADMIN_RCON))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user