summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-04 22:15:46 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-04 22:15:46 +0000
commit6fa2633311098d9775593186f5f5e1d339434cd2 (patch)
tree479d0dba7d2eb88eeb5f850a225f671d710e0864 /include
parent71b7b578bdac9fdf5e70dde6c3d404660cb1766f (diff)
Fix these to use new hook system (u_listmode wasnt fixed yet)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8533 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/u_listmode.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/u_listmode.h b/include/u_listmode.h
index dddd799ee..5fa20fccd 100644
--- a/include/u_listmode.h
+++ b/include/u_listmode.h
@@ -238,9 +238,10 @@ class ListModeBase : public ModeHandler
/** Populate the Implements list with the correct events for a List Mode
*/
- virtual void DoImplements(char* List)
+ virtual void DoImplements(Module* m)
{
- List[I_OnChannelDelete] = List[I_OnSyncChannel] = List[I_OnCleanup] = List[I_OnRehash] = 1;
+ Implementation eventlist[] = { I_OnChannelDelete, I_OnSyncChannel, I_OnCleanup, I_OnRehash };
+ ServerInstance->Modules->Attach(eventlist, this, 4);
}
/** Handle the list mode.