summaryrefslogtreecommitdiff
path: root/src/modules/m_maphide.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_maphide.cpp')
-rw-r--r--src/modules/m_maphide.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_maphide.cpp b/src/modules/m_maphide.cpp
index 4c9d0591f..d05200164 100644
--- a/src/modules/m_maphide.cpp
+++ b/src/modules/m_maphide.cpp
@@ -20,9 +20,9 @@ class ModuleMapHide : public Module
std::string url;
public:
ModuleMapHide()
- {
- ServerInstance->Modules->Attach(I_OnPreCommand, this);
- ServerInstance->Modules->Attach(I_OnRehash, this);
+ {
+ Implementation eventlist[] = { I_OnPreCommand, I_OnRehash };
+ ServerInstance->Modules->Attach(eventlist, this, 2);
OnRehash(NULL);
}