From fabecae6e640f62734d4e5711f1f4a49658c2993 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sat, 3 Nov 2007 00:24:55 +0000 Subject: [PATCH] Fix mode display in whois with unreal (379 numeric). Bug #479 git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4637 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/irc/fe-whois.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fe-common/irc/fe-whois.c b/src/fe-common/irc/fe-whois.c index 1e29d751..3505ade0 100644 --- a/src/fe-common/irc/fe-whois.c +++ b/src/fe-common/irc/fe-whois.c @@ -113,8 +113,10 @@ static void event_whois_modes(IRC_SERVER_REC *server, const char *data) g_return_if_fail(data != NULL); - params = event_get_params(data, 6, NULL, &nick, - NULL, NULL, NULL, &modes); + params = event_get_params(data, 3 | PARAM_FLAG_GETREST, + NULL, &nick, &modes); + if (!strncmp(modes, "is using modes ", 15)) + modes += 15; printformat(server, nick, MSGLEVEL_CRAP, IRCTXT_WHOIS_MODES, nick, modes); g_free(params);