summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-03-22 11:45:16 -0500
committerAdam <Adam@anope.org>2013-03-22 11:46:30 -0500
commitdeedb3bdd7afa03f5793201ceec76825930e4a79 (patch)
treeaf2ed0a05ae0b407d788224c219e6073a05d7e14 /src/users.cpp
parentd27aa0350067eec6e53011fc0ac49c439fbd357f (diff)
Dont call SetCloakedHost in users constructor, just set chost, because SetCloakedHost logs a message like the user just changed their host
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 972a39d56..708a8062c 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -47,8 +47,7 @@ User::User(const Anope::string &snick, const Anope::string &sident, const Anope:
this->ident = sident;
this->host = shost;
this->vhost = svhost;
- if (!svhost.empty())
- this->SetCloakedHost(svhost);
+ this->chost = svhost;
this->ip = sip;
this->server = sserver;
this->realname = srealname;
@@ -65,6 +64,7 @@ User::User(const Anope::string &snick, const Anope::string &sident, const Anope:
Log(LOG_DEBUG) << "Duplicate user " << snick << " in user table?";
this->nc = NULL;
+ this->UpdateHost();
if (sserver) // Our bots are introduced on startup with no server
{