1
0
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:
Sébastien Helleu
2015-02-10 21:58:47 +01:00
parent 7c5016c79d
commit 63a9d77339
+8 -5
View File
@@ -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))