mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -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 */
|
||||
switch (rec->type) {
|
||||
case SETTING_TYPE_BOOLEAN:
|
||||
set_boolean(key, clear ? FALSE : value);
|
||||
if (clear)
|
||||
settings_set_bool(key, FALSE);
|
||||
else
|
||||
set_boolean(key, value);
|
||||
break;
|
||||
case SETTING_TYPE_INT:
|
||||
settings_set_int(key, clear ? 0 : atoi(value));
|
||||
|
Loading…
Reference in New Issue
Block a user