From 33cdfa644ee59576585baabfb70dbc90c0f4615e Mon Sep 17 00:00:00 2001 From: Fysiks Date: Thu, 20 Mar 2014 18:49:59 +0100 Subject: [PATCH] Add check for empty string in amx_chat command (bug 6017, r=arkshine) --- plugins/adminchat.sma | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/adminchat.sma b/plugins/adminchat.sma index 2da5980c..8bafd391 100755 --- a/plugins/adminchat.sma +++ b/plugins/adminchat.sma @@ -259,10 +259,16 @@ public cmdChat(id, level, cid) if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED - new message[192], name[32], players[32], inum, authid[32], userid, pl + new message[192] read_args(message, charsmax(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_name(id, name, charsmax(name)) userid = get_user_userid(id)