summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2010-08-18 00:01:14 +0200
committerAlexander Barton <alex@barton.de>2010-08-18 00:01:14 +0200
commit32188d821b24198e4f6b5283fec1060b6700b66b (patch)
tree67a207ea16564f84508007627a824276d858f77c /src
parent6f4a348b753d8a4ddb5a2dc40578807d4722e0c6 (diff)
downloadngircd-32188d821b24198e4f6b5283fec1060b6700b66b.tar.gz
ngircd-32188d821b24198e4f6b5283fec1060b6700b66b.zip
write_whoreply(): respect hostname cloaking
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/irc-info.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c
index 3da4c83f..905799eb 100644
--- a/src/ngircd/irc-info.c
+++ b/src/ngircd/irc-info.c
@@ -728,9 +728,11 @@ IRC_VERSION( CLIENT *Client, REQUEST *Req )
 static bool
 write_whoreply(CLIENT *Client, CLIENT *c, const char *channelname, const char *flags)
 {
-	return IRC_WriteStrClient(Client, RPL_WHOREPLY_MSG, Client_ID(Client), channelname,
-			Client_User(c), Client_Hostname(c), Client_ID(Client_Introducer(c)), Client_ID(c),
-			flags, Client_Hops(c), Client_Info(c));
+	return IRC_WriteStrClient(Client, RPL_WHOREPLY_MSG, Client_ID(Client),
+				  channelname, Client_User(c),
+				  Client_HostnameCloaked(c),
+				  Client_ID(Client_Introducer(c)), Client_ID(c),
+				  flags, Client_Hops(c), Client_Info(c));
 }
 
 
@@ -1329,7 +1331,6 @@ IRC_Send_NAMES( CLIENT *Client, CHANNEL *Chan )
 } /* IRC_Send_NAMES */
 
 
-
 /**
  * Send the ISUPPORT numeric (005).
  * This numeric indicates the features that are supported by this server.