degesch: fix RPL_WELCOME user@host parsing

This commit is contained in:
Přemysl Eric Janouch 2015-04-24 22:33:23 +02:00
parent dd8bb4c206
commit 2a0dcc2add

View File

@ -2324,8 +2324,8 @@ irc_process_numeric (struct app_context *ctx,
{ {
case IRC_RPL_WELCOME: case IRC_RPL_WELCOME:
// We still issue a USERHOST anyway as this is in general unreliable // We still issue a USERHOST anyway as this is in general unreliable
if (msg->params.len == 1) if (msg->params.len == 2)
irc_try_parse_welcome_for_userhost (ctx, msg->params.vector[0]); irc_try_parse_welcome_for_userhost (ctx, msg->params.vector[1]);
break; break;
case IRC_RPL_ISUPPORT: case IRC_RPL_ISUPPORT:
// TODO: parse this, mainly PREFIX; see // TODO: parse this, mainly PREFIX; see