1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05: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:
Timo Sirainen 2000-08-15 21:54:33 +00:00 committed by cras
parent 3baf7fbd4c
commit a02b903252
2 changed files with 4 additions and 0 deletions

View File

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

View File

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