1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

irc_send_cmd_split() - don't crash if there was no nicks given (probably

called improperly from script)..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2123 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-11-20 03:26:36 +00:00 committed by cras
parent 72d943acdb
commit 53ce47a81a

View File

@ -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);