]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_permchannels.cpp
Remove spanningtree override of /LUSERS
[user/henk/code/inspircd.git] / src / modules / m_permchannels.cpp
index 3f10bbeb876c991ffdac32363a972225e6e83b06..a9c4c8a72779e84602285f854efb31baa9e2bb10 100644 (file)
@@ -179,8 +179,8 @@ public:
        {
                if (!ServerInstance->Modes->AddMode(&p))
                        throw ModuleException("Could not add new modes!");
-               Implementation eventlist[] = { I_OnChannelPreDelete, I_OnPostTopicChange, I_OnRawMode };
-               ServerInstance->Modules->Attach(eventlist, this, 3);
+               Implementation eventlist[] = { I_OnChannelPreDelete, I_OnPostTopicChange, I_OnRawMode, I_OnRehash };
+               ServerInstance->Modules->Attach(eventlist, this, 4);
 
                OnRehash(NULL);
        }
@@ -207,6 +207,7 @@ public:
                        else
                                iter++;
                }
+               ServerInstance->Modes->DelMode(&p);
                return Module::cull();
        }