1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 16:26:37 +02:00

Dont call SetCloakedHost in users constructor, just set chost, because SetCloakedHost logs a message like the user just changed their host

This commit is contained in:
Adam
2013-03-22 11:45:16 -05:00
parent d27aa03500
commit deedb3bdd7
+2 -2
View File
@@ -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
{