1.1 --- a/plugins/basechat.sp Sun Sep 16 05:15:46 2007 +0000
1.2 +++ b/plugins/basechat.sp Sun Sep 16 15:34:44 2007 +0000
1.3 @@ -157,10 +157,15 @@
1.4 public Action:Command_SayAdmin(client, args)
1.5 {
1.6 if (!CheckAdminForChat(client) && !GetConVarBool(g_Cvar_Chatmode))
1.7 + {
1.8 return Plugin_Continue;
1.9 + }
1.10
1.11 decl String:text[192];
1.12 - GetCmdArgString(text, sizeof(text));
1.13 + if (GetCmdArgString(text, sizeof(text)) < 1)
1.14 + {
1.15 + return Plugin_Continue;
1.16 + }
1.17
1.18 new startidx;
1.19 if (text[strlen(text)-1] == '"')
1.20 @@ -354,6 +359,11 @@
1.21
1.22 bool:CheckAdminForChat(client)
1.23 {
1.24 + if (client == 0)
1.25 + {
1.26 + return true;
1.27 + }
1.28 +
1.29 new AdminId:aid = GetUserAdmin(client);
1.30
1.31 if (aid == INVALID_ADMIN_ID)