summaryrefslogtreecommitdiff
path: root/src/fe-common/irc
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@irssi.org>2007-11-03 00:24:55 +0000
committerjilles <jilles@dbcabf3a-b0e7-0310-adc4-f8d773084564>2007-11-03 00:24:55 +0000
commitfabecae6e640f62734d4e5711f1f4a49658c2993 (patch)
tree2095af4f0691f7aaef4d1adc4d71c6b8884cde6c /src/fe-common/irc
parent55c16859993bff2520881b0072962a941904e2f7 (diff)
downloadirssi-fabecae6e640f62734d4e5711f1f4a49658c2993.zip
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
Diffstat (limited to 'src/fe-common/irc')
-rw-r--r--src/fe-common/irc/fe-whois.c6
1 files 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);