]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_xline_db.cpp
Modified m_timedbans to behave more like setting mode +b manually.
[user/henk/code/inspircd.git] / src / modules / m_xline_db.cpp
index 6caae07d7d1e67ff3071325cbc7cec8852d6e5c4..404bc6b027de2c2fa33e740b9566b060667e62fa 100644 (file)
@@ -32,9 +32,10 @@ class ModuleXLineDB : public Module
                                                // DO REMEMBER TO SET IT, otherwise it's annoying :P
        std::string xlinedbpath;
  public:
-       ModuleXLineDB()         {
+       void init()
+       {
                Implementation eventlist[] = { I_OnAddLine, I_OnDelLine, I_OnExpireLine };
-               ServerInstance->Modules->Attach(eventlist, this, 3);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
 
                /* Load the configuration
                 * Note: