mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
/TOGGLE without parameters now complains not having enough parameters..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1259 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
6ee833f0a5
commit
374df6c5f1
@ -136,6 +136,8 @@ static void cmd_toggle(const char *data)
|
||||
if (!cmd_get_params(data, &free_arg, 2 | PARAM_FLAG_GETREST, &key, &value))
|
||||
return;
|
||||
|
||||
if (*key == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
|
||||
|
||||
type = settings_get_type(key);
|
||||
if (type == -1)
|
||||
printtext(NULL, NULL, MSGLEVEL_CLIENTERROR, "Unknown setting %_%s", key);
|
||||
|
Loading…
Reference in New Issue
Block a user