]> arthur.barton.de Git - ngircd-alex.git/commitdiff
WHOWAS: respect hostname cloaking
authorAlexander Barton <alex@barton.de>
Tue, 17 Aug 2010 19:02:39 +0000 (21:02 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 17 Aug 2010 19:02:39 +0000 (21:02 +0200)
Store cloaked hostname if user mode "x" is set when the client
disconnects from the server.

src/ngircd/client.c

index dd4113e48e83c25641d90c3695cf9ff47942baa4..f73a2d1ef0b46242bbeed67a8f0a64608b46ab34 100644 (file)
@@ -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 ));
                 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 ));
                 sizeof( My_Whowas[slot].host ));
        strlcpy( My_Whowas[slot].info, Client_Info( Client ),
                 sizeof( My_Whowas[slot].info ));