]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_timedbans.cpp
Argh, i give up
[user/henk/code/inspircd.git] / src / modules / m_timedbans.cpp
index 30dda81f5f53a7d3c08c7f45365169e0ab3f83df..0e40dc0ea1a9f99edf77451badb8c7a46c7265ce 100644 (file)
@@ -114,6 +114,8 @@ class ModuleTimedBans : public Module
                mycommand = new CommandTban(ServerInstance);
                ServerInstance->AddCommand(mycommand);
                TimedBanList.clear();
+               Implementation eventlist[] = { I_OnDelBan, I_OnBackgroundTimer };
+               ServerInstance->Modules->Attach(eventlist, this, 2);
        }
        
        virtual ~ModuleTimedBans()
@@ -121,10 +123,6 @@ class ModuleTimedBans : public Module
                TimedBanList.clear();
        }
 
-       void Implements(char* List)
-       {
-               List[I_OnDelBan] = List[I_OnBackgroundTimer] = 1;
-       }
 
        virtual int OnDelBan(User* source, Channel* chan, const std::string &banmask)
        {