mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 04:16:38 +02:00
irc: fix update of nick prefixes when the names are received in message 353 (closes #1022)
This regression was introduced by commit
fadee50664 (issue #1019)
This commit is contained in:
@@ -466,7 +466,18 @@ irc_nick_new (struct t_irc_server *server, struct t_irc_channel *channel,
|
||||
/* nick already exists on this channel? */
|
||||
ptr_nick = irc_nick_search (server, channel, nickname);
|
||||
if (ptr_nick)
|
||||
{
|
||||
/* remove old nick from nicklist */
|
||||
irc_nick_nicklist_remove (server, channel, ptr_nick);
|
||||
|
||||
/* update nick prefixes */
|
||||
irc_nick_set_prefixes (server, ptr_nick, prefixes);
|
||||
|
||||
/* add new nick in nicklist */
|
||||
irc_nick_nicklist_add (server, channel, ptr_nick);
|
||||
|
||||
return ptr_nick;
|
||||
}
|
||||
|
||||
/* alloc memory for new nick */
|
||||
if ((new_nick = malloc (sizeof (*new_nick))) == NULL)
|
||||
|
||||
Reference in New Issue
Block a user