summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_shun.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp
index 509ed3ae1..db800527d 100644
--- a/src/modules/m_shun.cpp
+++ b/src/modules/m_shun.cpp
@@ -166,6 +166,9 @@ class ModuleShun : public Module
mycommand = new cmd_shun(ServerInstance);
ServerInstance->AddCommand(mycommand);
+
+ Implementation eventlist[] = { I_OnStats, I_OnPreCommand };
+ ServerInstance->Modules->Attach(eventlist, this, 2);
}
virtual ~ModuleShun()
@@ -173,11 +176,6 @@ class ModuleShun : public Module
ServerInstance->XLines->UnregisterFactory(f);
}
- void Implements(char* List)
- {
- List[I_OnPreCommand] = List[I_OnStats] = 1;
- }
-
virtual int OnStats(char symbol, User* user, string_list& out)
{
// XXX write me