X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_ircv3_chghost.cpp;h=289f057530581f51132b288fc2776fdf933d31d5;hb=4e3d655dff6f8a5aed626475fbf19c2a7119c20b;hp=fd142803f2444db8ac1681e4b474a56f4c14d0bd;hpb=c6e40d36b42a7ebf832c3a57d2816a47ee9c9a76;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_ircv3_chghost.cpp b/src/modules/m_ircv3_chghost.cpp index fd142803f..289f05753 100644 --- a/src/modules/m_ircv3_chghost.cpp +++ b/src/modules/m_ircv3_chghost.cpp @@ -28,11 +28,14 @@ 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); ClientProtocol::Event protoev(protoevprov, msg); - IRCv3::WriteNeighborsWithCap(user, protoev, cap); + IRCv3::WriteNeighborsWithCap(user, protoev, cap, true); } public: