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:
parent
72d943acdb
commit
53ce47a81a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user