about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2010-08-17 21:00:02 +0200
committerAlexander Barton <alex@barton.de>2010-08-17 21:00:47 +0200
commit3fd4f320b726e91f674c424e0c5ff5abce2c6f09 (patch)
treeb063f674313f4525a3a128f7cb85389dcb6785ca
parent6fdd3479f126a866c022c39dcd424d6042de6875 (diff)
downloadngircd-3fd4f320b726e91f674c424e0c5ff5abce2c6f09.tar.gz
ngircd-3fd4f320b726e91f674c424e0c5ff5abce2c6f09.zip
WHOIS: respect hostname cloaking
-rw-r--r--src/ngircd/irc-info.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c
index ad585fe2..74530f7b 100644
--- a/src/ngircd/irc-info.c
+++ b/src/ngircd/irc-info.c
@@ -939,8 +939,11 @@ IRC_WHOIS( CLIENT *Client, REQUEST *Req )
 
 	if(( Client_NextHop( target ) != Client_ThisServer( )) && ( Client_Type( Client_NextHop( target )) == CLIENT_SERVER )) return IRC_WriteStrClientPrefix( target, from, "WHOIS %s :%s", Req->argv[0], Req->argv[1] );
 
-	/* Nick, user and name */
-	if( ! IRC_WriteStrClient( from, RPL_WHOISUSER_MSG, Client_ID( from ), Client_ID( c ), Client_User( c ), Client_Hostname( c ), Client_Info( c ))) return DISCONNECTED;
+	/* Nick, user, hostname and client info */
+	if (!IRC_WriteStrClient(from, RPL_WHOISUSER_MSG, Client_ID(from),
+				Client_ID(c), Client_User(c),
+				Client_HostnameCloaked(c), Client_Info(c)))
+		return DISCONNECTED;
 
 	/* Server */
 	if( ! IRC_WriteStrClient( from, RPL_WHOISSERVER_MSG, Client_ID( from ), Client_ID( c ), Client_ID( Client_Introducer( c )), Client_Info( Client_Introducer( c )))) return DISCONNECTED;