mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +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
|
|
@ -77,8 +77,8 @@ static char *server_create_address_tag(const char *address)
|
|||
/* try to generate a reasonable server tag */
|
||||
if (strchr(address, '.') == NULL) {
|
||||
start = end = NULL;
|
||||
} else if (g_strncasecmp(address, "irc", 3) == 0 ||
|
||||
g_strncasecmp(address, "chat", 4) == 0) {
|
||||
} else if (g_ascii_strncasecmp(address, "irc", 3) == 0 ||
|
||||
g_ascii_strncasecmp(address, "chat", 4) == 0) {
|
||||
/* irc-2.cs.hut.fi -> hut, chat.bt.net -> bt */
|
||||
end = strrchr(address, '.');
|
||||
start = end-1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue