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
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue