diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/common/weeconfig.c | 12 | ||||
-rw-r--r-- | weechat/ChangeLog | 3 | ||||
-rw-r--r-- | weechat/src/common/weeconfig.c | 12 |
4 files changed, 24 insertions, 6 deletions
@@ -1,10 +1,11 @@ WeeChat - Wee Enhanced Environment for Chat =========================================== -ChangeLog - 2006-10-09 +ChangeLog - 2006-10-12 Version 0.2.2 (under dev!): + * added more values for config boolean values: y/true/t/1 and n/false/f/0 * fixed bug with /alias and arguments (like $1), now text after argument(s) is used (bug #17944) * fixed minor display bug with special chars on some arch like PPC diff --git a/src/common/weeconfig.c b/src/common/weeconfig.c index 663d4cb89..4ec0ad2f8 100644 --- a/src/common/weeconfig.c +++ b/src/common/weeconfig.c @@ -1349,10 +1349,18 @@ config_option_set_value (t_config_option *option, char *value) { case OPTION_TYPE_BOOLEAN: if ((ascii_strcasecmp (value, "on") == 0) - || (ascii_strcasecmp (value, "yes") == 0)) + || (ascii_strcasecmp (value, "yes") == 0) + || (ascii_strcasecmp (value, "y") == 0) + || (ascii_strcasecmp (value, "true") == 0) + || (ascii_strcasecmp (value, "t") == 0) + || (ascii_strcasecmp (value, "1") == 0)) *(option->ptr_int) = BOOL_TRUE; else if ((ascii_strcasecmp (value, "off") == 0) - || (ascii_strcasecmp (value, "no") == 0)) + || (ascii_strcasecmp (value, "no") == 0) + || (ascii_strcasecmp (value, "n") == 0) + || (ascii_strcasecmp (value, "false") == 0) + || (ascii_strcasecmp (value, "f") == 0) + || (ascii_strcasecmp (value, "0") == 0)) *(option->ptr_int) = BOOL_FALSE; else return -1; diff --git a/weechat/ChangeLog b/weechat/ChangeLog index 05559cd19..3055c7dd4 100644 --- a/weechat/ChangeLog +++ b/weechat/ChangeLog @@ -1,10 +1,11 @@ WeeChat - Wee Enhanced Environment for Chat =========================================== -ChangeLog - 2006-10-09 +ChangeLog - 2006-10-12 Version 0.2.2 (under dev!): + * added more values for config boolean values: y/true/t/1 and n/false/f/0 * fixed bug with /alias and arguments (like $1), now text after argument(s) is used (bug #17944) * fixed minor display bug with special chars on some arch like PPC diff --git a/weechat/src/common/weeconfig.c b/weechat/src/common/weeconfig.c index 663d4cb89..4ec0ad2f8 100644 --- a/weechat/src/common/weeconfig.c +++ b/weechat/src/common/weeconfig.c @@ -1349,10 +1349,18 @@ config_option_set_value (t_config_option *option, char *value) { case OPTION_TYPE_BOOLEAN: if ((ascii_strcasecmp (value, "on") == 0) - || (ascii_strcasecmp (value, "yes") == 0)) + || (ascii_strcasecmp (value, "yes") == 0) + || (ascii_strcasecmp (value, "y") == 0) + || (ascii_strcasecmp (value, "true") == 0) + || (ascii_strcasecmp (value, "t") == 0) + || (ascii_strcasecmp (value, "1") == 0)) *(option->ptr_int) = BOOL_TRUE; else if ((ascii_strcasecmp (value, "off") == 0) - || (ascii_strcasecmp (value, "no") == 0)) + || (ascii_strcasecmp (value, "no") == 0) + || (ascii_strcasecmp (value, "n") == 0) + || (ascii_strcasecmp (value, "false") == 0) + || (ascii_strcasecmp (value, "f") == 0) + || (ascii_strcasecmp (value, "0") == 0)) *(option->ptr_int) = BOOL_FALSE; else return -1; |