mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 06:16:40 +02:00
irc: fix crash in callback of message 354 when the nick is not found in channel
This commit is contained in:
@@ -4300,11 +4300,14 @@ IRC_PROTOCOL_CALLBACK(354)
|
||||
}
|
||||
|
||||
/* update account flag for nick */
|
||||
if (ptr_nick->account)
|
||||
free (ptr_nick->account);
|
||||
ptr_nick->account = (ptr_channel && ptr_nick && pos_account
|
||||
&& server->cap_account_notify) ?
|
||||
strdup (pos_account) : strdup ("*");
|
||||
if (ptr_nick)
|
||||
{
|
||||
if (ptr_nick->account)
|
||||
free (ptr_nick->account);
|
||||
ptr_nick->account = (ptr_channel && pos_account
|
||||
&& server->cap_account_notify) ?
|
||||
strdup (pos_account) : strdup ("*");
|
||||
}
|
||||
|
||||
/* display output of who (manual who from user) */
|
||||
if (!ptr_channel || (ptr_channel->checking_whox <= 0))
|
||||
|
||||
Reference in New Issue
Block a user