From 9366bad5948679496a34901c9dd429466ee22bd3 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 16 Sep 2007 15:34:44 +0000 Subject: [PATCH] - fixed amb949 - basechat still didn't catch blank say commands right - fixed a bug where server console could not use say commands in basechat --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401440 --- plugins/basechat.sp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/plugins/basechat.sp b/plugins/basechat.sp index b0a5bab0..788a22e9 100644 --- a/plugins/basechat.sp +++ b/plugins/basechat.sp @@ -157,10 +157,15 @@ public Action:Command_SayChat(client, args) public Action:Command_SayAdmin(client, args) { if (!CheckAdminForChat(client) && !GetConVarBool(g_Cvar_Chatmode)) + { return Plugin_Continue; + } decl String:text[192]; - GetCmdArgString(text, sizeof(text)); + if (GetCmdArgString(text, sizeof(text)) < 1) + { + return Plugin_Continue; + } new startidx; if (text[strlen(text)-1] == '"') @@ -354,6 +359,11 @@ public Action:Command_SmMsay(client, args) bool:CheckAdminForChat(client) { + if (client == 0) + { + return true; + } + new AdminId:aid = GetUserAdmin(client); if (aid == INVALID_ADMIN_ID)