mirror of
https://github.com/weechat/weechat.git
synced 2026-07-08 18:53:12 +02:00
irc: fix crash on malformed irc notice received (without message after target)
This commit is contained in:
@@ -961,6 +961,8 @@ IRC_PROTOCOL_CALLBACK(notice)
|
||||
|
||||
if (argv[0][0] == ':')
|
||||
{
|
||||
if (argc < 4)
|
||||
return WEECHAT_RC_ERROR;
|
||||
pos_target = argv[2];
|
||||
if ((pos_target[0] == '@') && (irc_channel_is_channel (pos_target + 1)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user