From 6fa2633311098d9775593186f5f5e1d339434cd2 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 4 Nov 2007 22:15:46 +0000 Subject: 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 --- include/u_listmode.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') 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. -- cgit v1.2.3