diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-05-14 07:25:04 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-05-14 07:25:04 +0200 |
commit | f6d6f7bac555478a3f3b62853a8dc606f11ad313 (patch) | |
tree | efa1be3ce8fce5375cc7cf6057ba5b602465e590 /src | |
parent | 90610c55c8668944bd2ad614bf2428774762f573 (diff) | |
download | weechat-f6d6f7bac555478a3f3b62853a8dc606f11ad313.zip |
irc: fix crash when the nick in incoming message is not found in channel
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index ef2f097ae..4b13ac928 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -2229,7 +2229,8 @@ IRC_PROTOCOL_CALLBACK(privmsg) /* other message */ ptr_nick = irc_nick_search (server, ptr_channel, nick); - irc_nick_set_host (ptr_nick, address); + if (ptr_nick) + irc_nick_set_host (ptr_nick, address); if (status_msg[0]) { |