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];
|
||||
new String:reason[128];
|
||||
new String:time[50];
|
||||
new String:authid[50];
|
||||
|
||||
@ -228,9 +227,12 @@ public Action:Command_AddBan(client, args)
|
||||
/* Get steamid */
|
||||
if ((len = BreakString(arg_string[total_len], authid, sizeof(authid))) != -1)
|
||||
{
|
||||
/* Get reason */
|
||||
total_len += len;
|
||||
BreakString(arg_string[total_len], reason, sizeof(reason));
|
||||
}
|
||||
else
|
||||
{
|
||||
total_len = 0;
|
||||
arg_string[0] = '\0';
|
||||
}
|
||||
|
||||
/* Verify steamid */
|
||||
@ -248,11 +250,11 @@ public Action:Command_AddBan(client, args)
|
||||
client,
|
||||
minutes,
|
||||
authid,
|
||||
reason);
|
||||
arg_string[total_len]);
|
||||
BanIdentity(authid,
|
||||
minutes,
|
||||
BANFLAG_AUTHID,
|
||||
reason,
|
||||
arg_string[total_len],
|
||||
"sm_addban",
|
||||
client);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user