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:
Emanuele Giaquinta 2008-03-09 12:01:16 +00:00 committed by exg
commit 7df46597e1
22 changed files with 63 additions and 63 deletions

View file

@ -57,11 +57,11 @@ static void sig_layout_restore_item(WINDOW_REC *window, const char *type,
if (name == NULL || tag == NULL)
return;
if (g_strcasecmp(type, "CHANNEL") == 0) {
if (g_ascii_strcasecmp(type, "CHANNEL") == 0) {
/* bind channel to window */
WINDOW_BIND_REC *rec = window_bind_add(window, tag, name);
rec->sticky = TRUE;
} else if (g_strcasecmp(type, "QUERY") == 0 && chat_type != NULL) {
} else if (g_ascii_strcasecmp(type, "QUERY") == 0 && chat_type != NULL) {
CHAT_PROTOCOL_REC *protocol;
/* create query immediately */
signal_add("query created",