diff options
| author | 2022-11-16 16:29:12 +0000 | |
|---|---|---|
| committer | 2022-11-16 16:29:12 +0000 | |
| commit | 92739a57f6020f07fcc27b80f19869bd85369dcb (patch) | |
| tree | a1c19b2ee89521c2ecb023ad8920491ddd82adfc /src/modules/m_ircv3_chghost.cpp | |
| parent | Release v4.0.0 alpha 16. (diff) | |
| parent | Update the Windows dependencies. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_ircv3_chghost.cpp')
| -rw-r--r-- | src/modules/m_ircv3_chghost.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/m_ircv3_chghost.cpp b/src/modules/m_ircv3_chghost.cpp index 5ff9ac1ba..80bcc2be7 100644 --- a/src/modules/m_ircv3_chghost.cpp +++ b/src/modules/m_ircv3_chghost.cpp @@ -21,12 +21,14 @@ #include "inspircd.h" #include "modules/cap.h" #include "modules/ircv3.h" +#include "modules/monitor.h" class ModuleIRCv3ChgHost final : public Module { Cap::Capability cap; ClientProtocol::EventProvider protoevprov; + Monitor::API monitorapi; void DoChgHost(User* user, const std::string& ident, const std::string& host) { @@ -37,7 +39,8 @@ class ModuleIRCv3ChgHost final msg.PushParamRef(ident); msg.PushParamRef(host); ClientProtocol::Event protoev(protoevprov, msg); - IRCv3::WriteNeighborsWithCap(user, protoev, cap, true); + IRCv3::WriteNeighborsWithCap res(user, protoev, cap, true); + Monitor::WriteWatchersWithCap(monitorapi, user, protoev, cap, res.GetAlreadySentId()); } public: @@ -45,6 +48,7 @@ public: : Module(VF_VENDOR, "Provides the IRCv3 chghost client capability.") , cap(this, "chghost") , protoevprov(this, "CHGHOST") + , monitorapi(this) { } |
