summaryrefslogtreecommitdiff
path: root/src/usermanager.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-07-09 15:35:12 +0200
committerattilamolnar <attilamolnar@hush.com>2012-09-13 18:51:28 +0200
commit2115bd71dc5307cdcda1b7d7be3b9d9b0545531f (patch)
tree1fa41e05856843c1385aa47940549bf080c043bd /src/usermanager.cpp
parent91abba488ad4b2c5bf59c720cde387b6390528d9 (diff)
Call OnUserSetIP() whenever the IP of a local user changes, set ident,host,dhost in LocalUser constructor
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r--src/usermanager.cpp6
1 files changed, 0 insertions, 6 deletions
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);