]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_ircv3_chghost.cpp
Silence some GCC warnings.
[user/henk/code/inspircd.git] / src / modules / m_ircv3_chghost.cpp
index d786891782b3548dadf3845fd2c95b15a0b2c7e3..289f057530581f51132b288fc2776fdf933d31d5 100644 (file)
@@ -28,6 +28,9 @@ class ModuleIRCv3ChgHost : public Module
 
        void DoChgHost(User* user, const std::string& ident, const std::string& host)
        {
+               if (!(user->registered & REG_NICKUSER))
+                       return;
+
                ClientProtocol::Message msg("CHGHOST", user);
                msg.PushParamRef(ident);
                msg.PushParamRef(host);