Fixed amb1219 - Proper tokenising of sm_addban
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401742
This commit is contained in:
parent
67417e2bf6
commit
1d2e7bb46b
@ -209,7 +209,6 @@ public Action:Command_AddBan(client, args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
decl String:arg_string[256];
|
decl String:arg_string[256];
|
||||||
new String:reason[128];
|
|
||||||
new String:time[50];
|
new String:time[50];
|
||||||
new String:authid[50];
|
new String:authid[50];
|
||||||
|
|
||||||
@ -228,9 +227,12 @@ public Action:Command_AddBan(client, args)
|
|||||||
/* Get steamid */
|
/* Get steamid */
|
||||||
if ((len = BreakString(arg_string[total_len], authid, sizeof(authid))) != -1)
|
if ((len = BreakString(arg_string[total_len], authid, sizeof(authid))) != -1)
|
||||||
{
|
{
|
||||||
/* Get reason */
|
|
||||||
total_len += len;
|
total_len += len;
|
||||||
BreakString(arg_string[total_len], reason, sizeof(reason));
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
total_len = 0;
|
||||||
|
arg_string[0] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Verify steamid */
|
/* Verify steamid */
|
||||||
@ -248,11 +250,11 @@ public Action:Command_AddBan(client, args)
|
|||||||
client,
|
client,
|
||||||
minutes,
|
minutes,
|
||||||
authid,
|
authid,
|
||||||
reason);
|
arg_string[total_len]);
|
||||||
BanIdentity(authid,
|
BanIdentity(authid,
|
||||||
minutes,
|
minutes,
|
||||||
BANFLAG_AUTHID,
|
BANFLAG_AUTHID,
|
||||||
reason,
|
arg_string[total_len],
|
||||||
"sm_addban",
|
"sm_addban",
|
||||||
client);
|
client);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user