X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fu_listmode.h;h=aa387ccf15e77359eb15d50db198d52c7f163c76;hb=db90a4e900119da63316eeaa184da04f51bb7c6f;hp=002530df45cdf96df8db873690cec95ff29809e0;hpb=5b329bf110e03c75141a2e21320ee8c250a67b46;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/u_listmode.h b/include/u_listmode.h index 002530df4..aa387ccf1 100644 --- a/include/u_listmode.h +++ b/include/u_listmode.h @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2007 InspIRCd Development Team + * InspIRCd: (C) 2002-2008 InspIRCd Development Team * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see @@ -18,11 +18,9 @@ #include #include #include -#include "users.h" -#include "channels.h" +#include "inspircd.h" #include "modules.h" #include "wildcard.h" -#include "inspircd.h" /** Get the time as a string */ @@ -240,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, m, 4); } /** Handle the list mode.