]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_cloaking.cpp
Implement IRCv3 message tag support.
[user/henk/code/inspircd.git] / src / modules / m_cloaking.cpp
index c277759d174400649a2cac31721fc221ac30769f..b9ff085c3ebdc488894e4db053b3ef64cddceb98 100644 (file)
@@ -313,7 +313,13 @@ class ModuleCloaking : public Module
                if (u->IsModeSet(cu) && !cu.active)
                {
                        u->SetMode(cu, false);
-                       u->WriteCommand("MODE", "-" + ConvToStr(cu.GetModeChar()));
+
+                       if (!IS_LOCAL(u))
+                               return;
+                       Modes::ChangeList modechangelist;
+                       modechangelist.push_remove(&cu);
+                       ClientProtocol::Events::Mode modeevent(ServerInstance->FakeClient, NULL, u, modechangelist);
+                       static_cast<LocalUser*>(u)->Send(modeevent);
                }
                cu.active = false;
        }