mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02: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
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue