mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +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@4738 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
496d82ac48
commit
7df46597e1
22 changed files with 63 additions and 63 deletions
|
|
@ -212,7 +212,7 @@ static void dcc_error_close_not_found(const char *type, const char *nick,
|
|||
{
|
||||
g_return_if_fail(type != NULL);
|
||||
g_return_if_fail(nick != NULL);
|
||||
if (g_strcasecmp(type, "CHAT") != 0) return;
|
||||
if (g_ascii_strcasecmp(type, "CHAT") != 0) return;
|
||||
|
||||
printformat(NULL, NULL, MSGLEVEL_DCC,
|
||||
IRCTXT_DCC_CHAT_NOT_FOUND, nick);
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ static void dcc_error_close_not_found(const char *type, const char *nick,
|
|||
g_return_if_fail(type != NULL);
|
||||
g_return_if_fail(nick != NULL);
|
||||
g_return_if_fail(fname != NULL);
|
||||
if (g_strcasecmp(type, "GET") != 0) return;
|
||||
if (g_ascii_strcasecmp(type, "GET") != 0) return;
|
||||
|
||||
if (fname == '\0') fname = "(ANY)";
|
||||
printformat(NULL, NULL, MSGLEVEL_DCC,
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ static void dcc_error_close_not_found(const char *type, const char *nick,
|
|||
g_return_if_fail(type != NULL);
|
||||
g_return_if_fail(nick != NULL);
|
||||
g_return_if_fail(fname != NULL);
|
||||
if (g_strcasecmp(type, "SEND") != 0) return;
|
||||
if (g_ascii_strcasecmp(type, "SEND") != 0) return;
|
||||
|
||||
if (fname == '\0') fname = "(ANY)";
|
||||
printformat(NULL, NULL, MSGLEVEL_DCC,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue