mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
Use g_ascii_str{,n}casecmp for case insensitive comparison with
ascii only strings. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4738 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
496d82ac48
commit
7df46597e1
22 changed files with 63 additions and 63 deletions
|
|
@ -66,11 +66,11 @@ static void set_print_pattern(const char *pattern)
|
|||
|
||||
static void set_boolean(const char *key, const char *value)
|
||||
{
|
||||
if (g_strcasecmp(value, "ON") == 0)
|
||||
if (g_ascii_strcasecmp(value, "ON") == 0)
|
||||
settings_set_bool(key, TRUE);
|
||||
else if (g_strcasecmp(value, "OFF") == 0)
|
||||
else if (g_ascii_strcasecmp(value, "OFF") == 0)
|
||||
settings_set_bool(key, FALSE);
|
||||
else if (g_strcasecmp(value, "TOGGLE") == 0)
|
||||
else if (g_ascii_strcasecmp(value, "TOGGLE") == 0)
|
||||
settings_set_bool(key, !settings_get_bool(key));
|
||||
else
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, TXT_NOT_TOGGLE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue