summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/irc/irc-info.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-info.c b/src/plugins/irc/irc-info.c
index 2faadb762..a933ac366 100644
--- a/src/plugins/irc/irc-info.c
+++ b/src/plugins/irc/irc-info.c
@@ -78,6 +78,9 @@ irc_info_info_irc_is_channel_cb (const void *pointer, void *data,
(void) data;
(void) info_name;
+ if (!arguments || !arguments[0])
+ return NULL;
+
ptr_server = NULL;
pos_channel = arguments;
pos_comma = strchr (arguments, ',');