summaryrefslogtreecommitdiff
path: root/src/irc/flood/flood.c
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-03-09 12:17:55 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-03-09 12:17:55 +0000
commit72930e0be3a8841e8149b246542832128310c350 (patch)
treec4cb68d6557440d1144126dac6f8bacbfb72a191 /src/irc/flood/flood.c
parent7df46597e17ff7af4a660ab47673fe2cabc91db6 (diff)
downloadirssi-72930e0be3a8841e8149b246542832128310c350.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@4739 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/flood/flood.c')
-rw-r--r--src/irc/flood/flood.c2
1 files changed, 1 insertions, 1 deletions
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);