repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 575485eb82698a926d38634be2b3e4dce4a5dfd6:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 575485eb82698a926d38634be2b3e4dce4a5dfd6
Author: Alexander Barton 
Date:   Tue Aug 17 21:02:39 2010 +0200

    WHOWAS: respect hostname cloaking

    Store cloaked hostname if user mode "x" is set when the client
    disconnects from the server.

diff --git a/src/ngircd/client.c b/src/ngircd/client.c
index dd4113e48e83c25641d90c3695cf9ff47942baa4..
index ..f73a2d1ef0b46242bbeed67a8f0a64608b46ab34 100644
--- a/src/ngircd/client.c
+++ b/src/ngircd/client.c
@@ -1193,7 +1193,7 @@ Client_RegisterWhowas( CLIENT *Client )
 		 sizeof( My_Whowas[slot].id ));
 	strlcpy( My_Whowas[slot].user, Client_User( Client ),
 		 sizeof( My_Whowas[slot].user ));
-	strlcpy( My_Whowas[slot].host, Client_Hostname( Client ),
+	strlcpy( My_Whowas[slot].host, Client_HostnameCloaked( Client ),
 		 sizeof( My_Whowas[slot].host ));
 	strlcpy( My_Whowas[slot].info, Client_Info( Client ),
 		 sizeof( My_Whowas[slot].info ));

-----END OF PAGE-----