summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_mlock.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_mlock.cpp b/src/modules/m_mlock.cpp
index 9e3c596cc..17deb17bd 100644
--- a/src/modules/m_mlock.cpp
+++ b/src/modules/m_mlock.cpp
@@ -18,7 +18,8 @@
#include "inspircd.h"
-class ModuleMLock : public Module {
+class ModuleMLock : public Module
+{
private:
StringExtItem mlock;
@@ -27,8 +28,7 @@ public:
void init()
{
- Implementation eventlist[] = { I_OnPreMode };
- ServerInstance->Modules->Attach(eventlist, this, 1);
+ ServerInstance->Modules->Attach(I_OnPreMode, this);
}
Version GetVersion()