1
0
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:
Timo Sirainen 2001-02-19 07:16:32 +00:00 committed by cras
parent 6ee833f0a5
commit 374df6c5f1

View File

@ -136,6 +136,8 @@ static void cmd_toggle(const char *data)
if (!cmd_get_params(data, &free_arg, 2 | PARAM_FLAG_GETREST, &key, &value)) if (!cmd_get_params(data, &free_arg, 2 | PARAM_FLAG_GETREST, &key, &value))
return; return;
if (*key == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
type = settings_get_type(key); type = settings_get_type(key);
if (type == -1) if (type == -1)
printtext(NULL, NULL, MSGLEVEL_CLIENTERROR, "Unknown setting %_%s", key); printtext(NULL, NULL, MSGLEVEL_CLIENTERROR, "Unknown setting %_%s", key);