Add check for empty string in amx_chat command (bug 6017, r=arkshine)
This commit is contained in:
parent
5dc96ddf47
commit
33cdfa644e
|
@ -259,10 +259,16 @@ public cmdChat(id, level, cid)
|
||||||
if (!cmd_access(id, level, cid, 2))
|
if (!cmd_access(id, level, cid, 2))
|
||||||
return PLUGIN_HANDLED
|
return PLUGIN_HANDLED
|
||||||
|
|
||||||
new message[192], name[32], players[32], inum, authid[32], userid, pl
|
new message[192]
|
||||||
|
|
||||||
read_args(message, charsmax(message))
|
read_args(message, charsmax(message))
|
||||||
remove_quotes(message)
|
remove_quotes(message)
|
||||||
|
|
||||||
|
if (!message[0])
|
||||||
|
return PLUGIN_HANDLED
|
||||||
|
|
||||||
|
new name[32], players[32], inum, authid[32], userid, pl
|
||||||
|
|
||||||
get_user_authid(id, authid, charsmax(authid))
|
get_user_authid(id, authid, charsmax(authid))
|
||||||
get_user_name(id, name, charsmax(name))
|
get_user_name(id, name, charsmax(name))
|
||||||
userid = get_user_userid(id)
|
userid = get_user_userid(id)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user