summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/irc-message.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-message.c b/src/plugins/irc/irc-message.c
index 2dc822f1f..052b07282 100644
--- a/src/plugins/irc/irc-message.c
+++ b/src/plugins/irc/irc-message.c
@@ -1667,8 +1667,9 @@ irc_message_split (struct t_irc_server *server, const char *message)
}
multiline = (
- ((weechat_strcasecmp (command, "privmsg") == 0)
- || (weechat_strcasecmp (command, "notice") == 0))
+ server
+ && ((weechat_strcasecmp (command, "privmsg") == 0)
+ || (weechat_strcasecmp (command, "notice") == 0))
&& message
&& strchr (message, '\n')
&& (index_args + 1 <= argc - 1)