]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Send_Message(): respect hostname cloaking
authorAlexander Barton <alex@barton.de>
Tue, 17 Aug 2010 19:15:58 +0000 (21:15 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 17 Aug 2010 19:16:46 +0000 (21:16 +0200)
src/ngircd/irc.c

index a1d073c1468dccc6a8a5410c6e733f2978581683..75af32111d835a9a812e495cb8bff63ad1e75658 100644 (file)
@@ -412,7 +412,7 @@ Send_Message(CLIENT * Client, REQUEST * Req, int ForceType, bool SendErrors)
                                if (nick != NULL && host != NULL) {
                                        if (strcmp(nick, Client_ID(cl)) == 0 &&
                                            strcmp(user, Client_User(cl)) == 0 &&
-                                           strcasecmp(host, Client_Hostname(cl)) == 0)
+                                           strcasecmp(host, Client_HostnameCloaked(cl)) == 0)
                                                break;
                                        else
                                                continue;
@@ -420,7 +420,7 @@ Send_Message(CLIENT * Client, REQUEST * Req, int ForceType, bool SendErrors)
                                if (strcasecmp(user, Client_User(cl)) != 0)
                                        continue;
                                if (host != NULL && strcasecmp(host,
-                                               Client_Hostname(cl)) != 0)
+                                               Client_HostnameCloaked(cl)) != 0)
                                        continue;
                                if (server != NULL && strcasecmp(server,
                                                Client_ID(Client_Introducer(cl))) != 0)