mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 09:02:13 +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@4739 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
7df46597e1
commit
72930e0be3
12 changed files with 35 additions and 35 deletions
|
|
@ -332,7 +332,7 @@ static void sig_server_nick_changed(IRC_SERVER_REC *server)
|
|||
static void ctcp_msg(IRC_SERVER_REC *server, const char *data,
|
||||
const char *nick, const char *addr, const char *target)
|
||||
{
|
||||
if (g_strncasecmp(data, "dcc ", 4) != 0)
|
||||
if (g_ascii_strncasecmp(data, "dcc ", 4) != 0)
|
||||
return;
|
||||
data += 4;
|
||||
|
||||
|
|
@ -345,7 +345,7 @@ static void ctcp_msg(IRC_SERVER_REC *server, const char *data,
|
|||
static void ctcp_reply(IRC_SERVER_REC *server, const char *data,
|
||||
const char *nick, const char *addr, const char *target)
|
||||
{
|
||||
if (g_strncasecmp(data, "dcc ", 4) != 0)
|
||||
if (g_ascii_strncasecmp(data, "dcc ", 4) != 0)
|
||||
return;
|
||||
data += 4;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue