Use g_ascii_str{,n}casecmp for case insensitive comparison with

ascii only strings.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4739 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2008-03-09 12:17:55 +00:00 committed by exg
commit 72930e0be3
12 changed files with 35 additions and 35 deletions

View file

@ -269,7 +269,7 @@ static void event_wallops(IRC_SERVER_REC *server, const char *data, const char *
if (ignore_check(SERVER(server), nick, addr, NULL, data, MSGLEVEL_WALLOPS))
return;
if (g_strncasecmp(data, "\001ACTION ", 8) != 0)
if (g_ascii_strncasecmp(data, "\001ACTION ", 8) != 0)
printformat(server, NULL, MSGLEVEL_WALLOPS, IRCTXT_WALLOPS, nick, data);
else {
/* Action in WALLOP */

View file

@ -177,7 +177,7 @@ static void cmd_notify(const char *data)
signal_stop();
}
if (g_strncasecmp(data, "-list", 4) == 0) {
if (g_ascii_strncasecmp(data, "-list", 4) == 0) {
cmd_notifylist_show();
signal_stop();
}