mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
/MSG -servertag crashed irssi.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@609 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
3baf7fbd4c
commit
a02b903252
@ -244,6 +244,9 @@ int command_have_option(const char *cmd, const char *option)
|
||||
rec = command_find(cmd);
|
||||
g_return_val_if_fail(rec != NULL, FALSE);
|
||||
|
||||
if (rec->options == NULL)
|
||||
return FALSE;
|
||||
|
||||
for (tmp = rec->options; *tmp != NULL; tmp++) {
|
||||
char *name = iscmdtype(**tmp) ? (*tmp)+1 : *tmp;
|
||||
|
||||
|
@ -74,6 +74,7 @@ IRC_SERVER_REC *irccmd_options_get_server(const char *cmd,
|
||||
signal_emit("error command", 2,
|
||||
GINT_TO_POINTER(CMDERR_OPTION_UNKNOWN),
|
||||
server == NULL ? list->data : list->next->data);
|
||||
signal_stop();
|
||||
|
||||
server = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user