From 391d88d296cc7607af1ffd5a9139209a167cb3a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 25 Jan 2015 17:36:59 +0100 Subject: irc: fix set of variable "pos_account" in callback for message "354" --- src/plugins/irc/irc-protocol.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/plugins/irc') diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index fad0fa3a0..c68520cd7 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -4256,13 +4256,10 @@ IRC_PROTOCOL_CALLBACK(354) pos_attr = argv[8]; pos_hopcount = argv[9]; - pos_account = NULL; + pos_account = (strcmp (argv[10], "0") != 0) ? argv[10] : NULL; pos_realname = (argc > 11) ? ((argv_eol[11][0] == ':') ? argv_eol[11] + 1 : argv_eol[11]) : NULL; - if (argv[10][0] != '0') - pos_account = argv[10]; - ptr_channel = irc_channel_search (server, argv[3]); ptr_nick = (ptr_channel) ? irc_nick_search (server, ptr_channel, argv[7]) : NULL; -- cgit v1.2.3