From 2a0dcc2addc2c949fa090f1e7f1e0de4f58cccb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Fri, 24 Apr 2015 22:33:23 +0200 Subject: degesch: fix RPL_WELCOME user@host parsing --- degesch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/degesch.c b/degesch.c index f108c1e..962b587 100644 --- a/degesch.c +++ b/degesch.c @@ -2324,8 +2324,8 @@ irc_process_numeric (struct app_context *ctx, { case IRC_RPL_WELCOME: // We still issue a USERHOST anyway as this is in general unreliable - if (msg->params.len == 1) - irc_try_parse_welcome_for_userhost (ctx, msg->params.vector[0]); + if (msg->params.len == 2) + irc_try_parse_welcome_for_userhost (ctx, msg->params.vector[1]); break; case IRC_RPL_ISUPPORT: // TODO: parse this, mainly PREFIX; see -- cgit v1.2.3