From 72930e0be3a8841e8149b246542832128310c350 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sun, 9 Mar 2008 12:17:55 +0000 Subject: 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 --- src/irc/flood/flood.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/irc/flood') diff --git a/src/irc/flood/flood.c b/src/irc/flood/flood.c index 21e01787..ebb07d2c 100644 --- a/src/irc/flood/flood.c +++ b/src/irc/flood/flood.c @@ -274,7 +274,7 @@ static void flood_ctcp(IRC_SERVER_REC *server, const char *data, if (addr == NULL || g_strcasecmp(nick, server->nick) == 0) return; - level = g_strncasecmp(data, "ACTION ", 7) != 0 ? MSGLEVEL_CTCPS : + level = g_ascii_strncasecmp(data, "ACTION ", 7) != 0 ? MSGLEVEL_CTCPS : (ischannel(*target) ? MSGLEVEL_PUBLIC : MSGLEVEL_MSGS); if (!ignore_check(SERVER(server), nick, addr, target, data, level)) flood_newmsg(server, level, nick, addr, target); -- cgit v1.2.3