1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 16:23:14 +02:00

irc: make IRC server names case sensitive (issue #1872)

This commit is contained in:
Sébastien Helleu
2023-01-27 00:02:12 +01:00
parent d7f08a45d7
commit 0704f382e0
6 changed files with 13 additions and 63 deletions
+2 -2
View File
@@ -82,7 +82,7 @@ irc_ignore_search (const char *mask, const char *server, const char *channel)
ptr_ignore = ptr_ignore->next_ignore)
{
if ((strcmp (ptr_ignore->mask, mask) == 0)
&& (weechat_strcasecmp (ptr_ignore->server, server) == 0)
&& (strcmp (ptr_ignore->server, server) == 0)
&& (weechat_strcasecmp (ptr_ignore->channel, channel) == 0))
{
return ptr_ignore;
@@ -177,7 +177,7 @@ irc_ignore_check_server (struct t_irc_ignore *ignore, const char *server)
if (strcmp (ignore->server, "*") == 0)
return 1;
return (weechat_strcasecmp (ignore->server, server) == 0) ? 1 : 0;
return (weechat_strcmp (ignore->server, server) == 0) ? 1 : 0;
}
/*