1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

Wallop actions fixed

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2852 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-06-13 21:47:40 +00:00 committed by cras
parent 80b8d0628a
commit cfa4966dc3

View File

@ -272,14 +272,14 @@ static void event_wallops(IRC_SERVER_REC *server, const char *data, const char *
if (ignore_check(SERVER(server), nick, addr, NULL, data, MSGLEVEL_WALLOPS)) if (ignore_check(SERVER(server), nick, addr, NULL, data, MSGLEVEL_WALLOPS))
return; return;
if (g_strncasecmp(data, "\001ACTION", 7) != 0) if (g_strncasecmp(data, "\001ACTION ", 8) != 0)
printformat(server, NULL, MSGLEVEL_WALLOPS, IRCTXT_WALLOPS, nick, data); printformat(server, NULL, MSGLEVEL_WALLOPS, IRCTXT_WALLOPS, nick, data);
else { else {
/* Action in WALLOP */ /* Action in WALLOP */
int len; int len;
char *tmp; char *tmp;
tmp = g_strdup(data); tmp = g_strdup(data+8);
len = strlen(tmp); len = strlen(tmp);
if (tmp[len-1] == 1) tmp[len-1] = '\0'; if (tmp[len-1] == 1) tmp[len-1] = '\0';
printformat(server, NULL, MSGLEVEL_WALLOPS, IRCTXT_ACTION_WALLOPS, nick, tmp); printformat(server, NULL, MSGLEVEL_WALLOPS, IRCTXT_ACTION_WALLOPS, nick, tmp);