From deedb3bdd7afa03f5793201ceec76825930e4a79 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 22 Mar 2013 11:45:16 -0500 Subject: [PATCH] Dont call SetCloakedHost in users constructor, just set chost, because SetCloakedHost logs a message like the user just changed their host --- src/users.cpp | 4 ++-- 1 file 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 {