mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
/SET -clear didn't work with booleans
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1307 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
f51a12bb6e
commit
6f5adbf96c
@ -100,7 +100,10 @@ static void cmd_set(char *data)
|
|||||||
/* change the setting */
|
/* change the setting */
|
||||||
switch (rec->type) {
|
switch (rec->type) {
|
||||||
case SETTING_TYPE_BOOLEAN:
|
case SETTING_TYPE_BOOLEAN:
|
||||||
set_boolean(key, clear ? FALSE : value);
|
if (clear)
|
||||||
|
settings_set_bool(key, FALSE);
|
||||||
|
else
|
||||||
|
set_boolean(key, value);
|
||||||
break;
|
break;
|
||||||
case SETTING_TYPE_INT:
|
case SETTING_TYPE_INT:
|
||||||
settings_set_int(key, clear ? 0 : atoi(value));
|
settings_set_int(key, clear ? 0 : atoi(value));
|
||||||
|
Loading…
Reference in New Issue
Block a user