]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_timedbans.cpp
Now rip out the old handler, and replace with an error log line
[user/henk/code/inspircd.git] / src / modules / m_timedbans.cpp
index 096306b1d1487a993ed747084926465b37355e57..d592581f5d58f13f1494c3baedfb2a850874276d 100644 (file)
@@ -164,12 +164,12 @@ class ModuleTimedBans : public Module
 
                                                /* Send mode remotely*/
                                                std::deque<std::string> n;
-                                               n.push_back(setban[0]);
                                                n.push_back("-b");
                                                n.push_back(setban[2]);
+
+                                               ServerInstance->PI->SendMode(i->channel, n);
                                                ServerInstance->SendMode(setban,3, ServerInstance->FakeClient);
-                                               Event rmode((char *)&n, NULL, "send_mode");
-                                               rmode.Send(ServerInstance);
+
                                                CUList empty;
                                                cr->WriteAllExcept(ServerInstance->FakeClient, true, '@', empty, "NOTICE %s :*** Timed ban on %s expired.", cr->name, i->mask.c_str());
                                                if (ServerInstance->Config->AllowHalfop)