1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 05:46:38 +02:00

irc: fix extraction of channel name in notice (when message starts with "[]")

This commit is contained in:
Sebastien Helleu
2013-08-29 07:59:25 +02:00
parent 0806f1ad7e
commit 55f1bbcd07
+1 -1
View File
@@ -1135,7 +1135,7 @@ IRC_PROTOCOL_CALLBACK(notice)
if (end_char != ' ')
{
pos = strchr (pos_args, end_char);
if (pos)
if (pos && (pos > pos_args + 1))
{
channel = weechat_strndup (pos_args + 1, pos - pos_args - 1);
if (channel && irc_channel_search (server, channel))