diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-07 22:39:19 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-07 22:39:19 +0000 |
commit | 43ba6d2a5256e7b74b9c96df9d603957e624c710 (patch) | |
tree | 66915c33a436991cf9eef7349fd0618fde69cafb /src/modules | |
parent | e9b343457de271771c181a288aaa3e34bd397850 (diff) |
Hook events properly.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9411 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_shun.cpp | 8 |
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 |