summaryrefslogtreecommitdiff
path: root/src/fe-common/core/fe-log.c
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-03-09 12:01:16 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-03-09 12:01:16 +0000
commit7df46597e17ff7af4a660ab47673fe2cabc91db6 (patch)
tree2e2abd9c8e4de4e7311c0506119142f62a78a2f1 /src/fe-common/core/fe-log.c
parent496d82ac4843b3dcf8fe64c216470f41f91120d9 (diff)
downloadirssi-7df46597e17ff7af4a660ab47673fe2cabc91db6.zip
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
Diffstat (limited to 'src/fe-common/core/fe-log.c')
-rw-r--r--src/fe-common/core/fe-log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-common/core/fe-log.c b/src/fe-common/core/fe-log.c
index 92df39ed..61b7a316 100644
--- a/src/fe-common/core/fe-log.c
+++ b/src/fe-common/core/fe-log.c
@@ -279,11 +279,11 @@ static void cmd_window_log(const char *data)
log = logs_find_item(LOG_ITEM_WINDOW_REFNUM, window, NULL, NULL);
open_log = close_log = FALSE;
- if (g_strcasecmp(set, "ON") == 0)
+ if (g_ascii_strcasecmp(set, "ON") == 0)
open_log = TRUE;
- else if (g_strcasecmp(set, "OFF") == 0) {
+ else if (g_ascii_strcasecmp(set, "OFF") == 0) {
close_log = TRUE;
- } else if (g_strcasecmp(set, "TOGGLE") == 0) {
+ } else if (g_ascii_strcasecmp(set, "TOGGLE") == 0) {
open_log = log == NULL;
close_log = log != NULL;
} else {