]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/users.cpp
Read the muteban config in ReadConfig().
[user/henk/code/inspircd.git] / src / users.cpp
index 506cdf6d816b0c1fda04fa6f4530c709aa993625..b00992141ac5b0ed8a6ee5792f550d4e267fb12a 100644 (file)
@@ -1013,7 +1013,7 @@ bool User::ChangeDisplayedHost(const std::string& shost)
 
        this->InvalidateCache();
 
-       if (IS_LOCAL(this))
+       if (IS_LOCAL(this) && this->registered != REG_NONE)
                this->WriteNumeric(RPL_YOURDISPLAYEDHOST, this->GetDisplayedHost(), "is now your displayed host");
 
        return true;
@@ -1026,7 +1026,7 @@ void User::ChangeRealHost(const std::string& host, bool resetdisplay)
        const bool changehost = (realhost != host);
        if (!changehost && !resetdisplay)
                return;
-       
+
        // If the displayhost is not set and we are not resetting it then
        // we need to copy it to the displayhost field.
        if (displayhost.empty() && !resetdisplay)