]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_services_account.cpp
Some more to fix still, modules probably wont load correctly atm
[user/henk/code/inspircd.git] / src / modules / m_services_account.cpp
index e5c62ae6c2d0f9b946bffd60ed45b720a706a0a4..eee4d881a5d19b55f262feef5bc34b4ac92fc06b 100644 (file)
@@ -120,6 +120,11 @@ class ModuleServicesAccount : public Module
                m3 = new AUser_R(ServerInstance);
                if (!ServerInstance->AddMode(m1) || !ServerInstance->AddMode(m2) || !ServerInstance->AddMode(m3))
                        throw ModuleException("Could not add new modes!");
+
+               Implementation eventlist[] = { I_OnWhois, I_OnUserPreMessage, I_OnUserPreNotice, I_OnUserPreJoin,
+                       I_OnSyncUserMetaData, I_OnUserQuit, I_OnCleanup, I_OnDecodeMetaData };
+
+               ServerInstance->Modules->Attach(eventlist, this, 8);
        }
 
        /* <- :twisted.oscnet.org 330 w00t2 w00t2 w00t :is logged in as */