diff options
Diffstat (limited to 'src/irc/core/irc.c')
-rw-r--r-- | src/irc/core/irc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/irc/core/irc.c b/src/irc/core/irc.c index b3ab9897..d24fb801 100644 --- a/src/irc/core/irc.c +++ b/src/irc/core/irc.c @@ -185,6 +185,11 @@ void irc_send_cmd_split(IRC_SERVER_REC *server, const char *cmd, g_return_if_fail(cmd != NULL); str = split_nicks(cmd, &pre, &nicks, &post, nickarg); + if (nicks == NULL) { + /* no nicks given? */ + g_free(str); + return; + } /* split the nicks */ nickstr = g_string_new(NULL); |