]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hideoper.cpp
Delete modewatchers when unloading modules that use them to keep the server from...
[user/henk/code/inspircd.git] / src / modules / m_hideoper.cpp
index 54207db557df02e37aaf97650086330d691928c8..80fee268fc85907fb9685a6e4328f2ccc8ab1256 100644 (file)
@@ -55,11 +55,10 @@ class ModuleHideOper : public Module
        ModuleHideOper()
                : hm(this)
        {
-
                if (!ServerInstance->Modes->AddMode(&hm))
                        throw ModuleException("Could not add new modes!");
-               Implementation eventlist[] = { I_OnWhoisLine };
-               ServerInstance->Modules->Attach(eventlist, this, 1);
+               Implementation eventlist[] = { I_OnWhoisLine, I_OnSendWhoLine };
+               ServerInstance->Modules->Attach(eventlist, this, 2);
        }