summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-03-03 16:14:28 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-03-03 16:14:28 +0000
commit6f5adbf96cadc7128d90de635284c81ef147b905 (patch)
tree03fa19f3545da69d9c9364b85e78e7283d4083a3 /src
parentf51a12bb6ed8795adbb3333ffa31cbdd45d4ab7c (diff)
downloadirssi-6f5adbf96cadc7128d90de635284c81ef147b905.zip
/SET -clear didn't work with booleans
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1307 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/core/fe-settings.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-settings.c b/src/fe-common/core/fe-settings.c
index b3a24e3b..694318f6 100644
--- a/src/fe-common/core/fe-settings.c
+++ b/src/fe-common/core/fe-settings.c
@@ -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));