diff options
author | Timo Sirainen <cras@irssi.org> | 2001-02-19 07:16:32 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-02-19 07:16:32 +0000 |
commit | 374df6c5f16404cb541566d32b52e094ede6d295 (patch) | |
tree | 1c5e44211106ed57417ecac418d41dac1a8520d8 /src | |
parent | 6ee833f0a5fe291790f6997a8e55ff653f9bb71b (diff) | |
download | irssi-374df6c5f16404cb541566d32b52e094ede6d295.zip |
/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
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/fe-settings.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-common/core/fe-settings.c b/src/fe-common/core/fe-settings.c index 251b3787..b3a24e3b 100644 --- a/src/fe-common/core/fe-settings.c +++ b/src/fe-common/core/fe-settings.c @@ -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); |