1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 22:06:38 +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
@@ -548,7 +548,7 @@ irc_info_infolist_irc_server_cb (const void *pointer, void *data,
ptr_server = ptr_server->next_server)
{
if (!arguments || !arguments[0]
|| weechat_string_match (ptr_server->name, arguments, 0))
|| weechat_string_match (ptr_server->name, arguments, 1))
{
if (!irc_server_add_to_infolist (ptr_infolist, ptr_server, 0))
{
@@ -1063,7 +1063,7 @@ irc_info_infolist_irc_notify_cb (const void *pointer, void *data,
ptr_server = ptr_server->next_server)
{
if (!arguments || !arguments[0]
|| weechat_string_match (ptr_server->name, arguments, 0))
|| weechat_string_match (ptr_server->name, arguments, 1))
{
for (ptr_notify = ptr_server->notify_list; ptr_notify;
ptr_notify = ptr_notify->next_notify)