1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00

irc: shorten code to call irc_nick_new() in join callback

This commit is contained in:
Sébastien Helleu
2015-01-25 15:17:51 +01:00
parent 62256251be
commit 055d7de721
+2 -4
View File
@@ -746,10 +746,8 @@ IRC_PROTOCOL_CALLBACK(join)
}
/* add nick in channel */
if (pos_account)
ptr_nick = irc_nick_new (server, ptr_channel, nick, address, NULL, 0, pos_account);
else
ptr_nick = irc_nick_new (server, ptr_channel, nick, address, NULL, 0, "*");
ptr_nick = irc_nick_new (server, ptr_channel, nick, address, NULL, 0,
(pos_account) ? pos_account : "*");
/* rename the nick if it was in list with a different case */
irc_channel_nick_speaking_rename_if_present (server, ptr_channel, nick);