]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/u_listmode.h
Clear up header insanity
[user/henk/code/inspircd.git] / include / u_listmode.h
index 002530df45cdf96df8db873690cec95ff29809e0..b9a11af82f5f88b0b4b189001368825a9bfe6367 100644 (file)
@@ -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
 #ifndef INSPIRCD_LISTMODE_PROVIDER
 #define INSPIRCD_LISTMODE_PROVIDER
 
-#include <stdio.h>
-#include <string>
-#include <sstream>
-#include <vector>
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
 #include "wildcard.h"
-#include "inspircd.h"
 
 /** Get the time as a string
  */
@@ -240,9 +232,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.