aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_mlock.cpp
diff options
context:
space:
mode:
authorGravatar William Pitcock2012-05-16 12:34:23 -0500
committerGravatar William Pitcock2012-05-16 12:34:23 -0500
commit1b909065b0fc7789a4a33dce56219befa602b8ec (patch)
tree5947723cb4149b6324234db87843411885cd8150 /src/modules/m_mlock.cpp
parentmlock: we should only enforce against modes set by our own clients (diff)
downloadinspircd++-1b909065b0fc7789a4a33dce56219befa602b8ec.tar.gz
inspircd++-1b909065b0fc7789a4a33dce56219befa602b8ec.tar.bz2
inspircd++-1b909065b0fc7789a4a33dce56219befa602b8ec.zip
mlock: fix style nitpicks
Diffstat (limited to 'src/modules/m_mlock.cpp')
-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()