1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-30 06:45:25 +00: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:
Timo Sirainen 2001-03-03 16:14:28 +00:00 committed by cras
parent f51a12bb6e
commit 6f5adbf96c

View File

@ -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));