]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_permchannels.cpp
Modified m_timedbans to behave more like setting mode +b manually.
[user/henk/code/inspircd.git] / src / modules / m_permchannels.cpp
index 40774e1fa1ff49bc534a84034065be530f7827e5..8958cdfcd67199dd7cd01d3be3aad8ba4d920523 100644 (file)
@@ -169,7 +169,7 @@ public:
        {
                ServerInstance->Modules->AddService(p);
                Implementation eventlist[] = { I_OnChannelPreDelete, I_OnPostTopicChange, I_OnRawMode, I_OnRehash, I_OnBackgroundTimer };
-               ServerInstance->Modules->Attach(eventlist, this, 5);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
 
                OnRehash(NULL);
        }