]> 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 1ff193c4dce2ec603a4eb6f85f2a6c2c115f0d6f..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)
@@ -189,7 +189,7 @@ class ModuleTimedBans : public Module
        
        virtual Version GetVersion()
        {
-               return Version(1, 1, 0, 0, VF_COMMON | VF_VENDOR, API_VERSION);
+               return Version(1, 2, 0, 0, VF_COMMON | VF_VENDOR, API_VERSION);
        }
 };