]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hostcycle.cpp
Hide User#host and User#dhost and use accessors to modify them.
[user/henk/code/inspircd.git] / src / modules / m_hostcycle.cpp
index 621f06a279e53e715feaa36c58a053603fd0e93c..0f7405dcc8b83f45ca93428cffeadc97c3f343c0 100644 (file)
@@ -109,7 +109,7 @@ class ModuleHostCycle : public Module
 
        void OnChangeIdent(User* user, const std::string& newident) CXX11_OVERRIDE
        {
-               DoHostCycle(user, newident, user->dhost, "Changing ident");
+               DoHostCycle(user, newident, user->GetDisplayedHost(), "Changing ident");
        }
 
        void OnChangeHost(User* user, const std::string& newhost) CXX11_OVERRIDE