From 2115bd71dc5307cdcda1b7d7be3b9d9b0545531f Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Mon, 9 Jul 2012 15:35:12 +0200 Subject: Call OnUserSetIP() whenever the IP of a local user changes, set ident,host,dhost in LocalUser constructor --- src/usermanager.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/usermanager.cpp') diff --git a/src/usermanager.cpp b/src/usermanager.cpp index 785d23625..d65f47128 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -66,16 +66,10 @@ void UserManager::AddUser(int socket, ListenSocket* via, irc::sockets::sockaddrs New->nick.assign(New->uuid, 0, ServerInstance->Config->Limits.NickMax); (*(this->clientlist))[New->nick] = New; - New->ident.assign("unknown"); - New->registered = REG_NONE; New->signon = ServerInstance->Time() + ServerInstance->Config->dns_timeout; New->lastping = 1; - /* Smarter than your average bear^H^H^H^Hset of strlcpys. */ - New->dhost.assign(New->GetIPString(), 0, 64); - New->host.assign(New->GetIPString(), 0, 64); - ServerInstance->Users->AddLocalClone(New); ServerInstance->Users->AddGlobalClone(New); -- cgit v1.2.3