mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02: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
2 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue