1
0
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:
Sebastien Helleu
2011-10-03 15:37:35 +02:00
parent f2879b0572
commit e93647db95
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -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)))
{