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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user