summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2010-08-17 21:15:58 +0200
committerAlexander Barton <alex@barton.de>2010-08-17 21:16:46 +0200
commit0263fa4c6623478d0ff6680b65bfcadd25f5f6df (patch)
treed959f3d4227e9a9ef23131e4858d88345306c2ef /src
parent31ea0f8ee963087728558e55298ff519c956d4f3 (diff)
downloadngircd-0263fa4c6623478d0ff6680b65bfcadd25f5f6df.tar.gz
ngircd-0263fa4c6623478d0ff6680b65bfcadd25f5f6df.zip
Send_Message(): respect hostname cloaking
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/irc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c
index a1d073c1..75af3211 100644
--- a/src/ngircd/irc.c
+++ b/src/ngircd/irc.c
@@ -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)