]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_timedbans.cpp
Fix a silly bug we never thought was a bug, in m_messageflood - the message that...
[user/henk/code/inspircd.git] / src / modules / m_timedbans.cpp
index 1ff193c4dce2ec603a4eb6f85f2a6c2c115f0d6f..4be32ffc2f14c22175a303d524d2b81f501fdf9c 100644 (file)
@@ -162,14 +162,9 @@ class ModuleTimedBans : public Module
                                                setban[1] = "-b";
                                                setban[2] = i->mask.c_str();
 
-                                               /* Send mode remotely*/
-                                               std::deque<std::string> n;
-                                               n.push_back(setban[0]);
-                                               n.push_back("-b");
-                                               n.push_back(setban[2]);
+                                               ServerInstance->PI->SendModeStr(i->channel, std::string("-b ") + setban[2]);
                                                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 +184,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);
        }
 };