From 4276d63cf7ebaa43cf141c3ab4980b818725b624 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Mon, 16 Feb 2004 20:58:29 +0000 Subject: [PATCH] fixed "say @" and "say @@" bug --- plugins/adminchat.sma | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/adminchat.sma b/plugins/adminchat.sma index a66757e1..7357d635 100755 --- a/plugins/adminchat.sma +++ b/plugins/adminchat.sma @@ -42,6 +42,7 @@ public cmdSayChat(id) { if ( !i || i > 3 ) return PLUGIN_CONTINUE new message[192], a = 0 read_args(message,191) + remove_quotes(message) switch(said[i]){ case 'r': a = 1 case 'g': a = 2 @@ -75,12 +76,13 @@ public cmdSayChat(id) { } public cmdSayAdmin(id) { - new said[2] - read_argv(1,said,1) - if (said[0]!='@') return PLUGIN_CONTINUE + new said[2] + read_argv(1,said,1) + if (said[0]!='@') return PLUGIN_CONTINUE new message[192], name[32],authid[32], userid - new players[32], inum + new players[32], inum read_args(message,191) + remove_quotes(message) get_user_authid(id,authid,31) get_user_name(id,name,31) userid = get_user_userid(id)