X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_ircv3_chghost.cpp;h=289f057530581f51132b288fc2776fdf933d31d5;hb=9ed9396278c2499f5322575c87aa4daea33992e3;hp=d786891782b3548dadf3845fd2c95b15a0b2c7e3;hpb=87b1461e2a4710a38b32186c2582da9fe9bb3804;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_ircv3_chghost.cpp b/src/modules/m_ircv3_chghost.cpp index d78689178..289f05753 100644 --- a/src/modules/m_ircv3_chghost.cpp +++ b/src/modules/m_ircv3_chghost.cpp @@ -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);