]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/cull_list.h
m_dnsbl updates
[user/henk/code/inspircd.git] / include / cull_list.h
index bd2fb45dae899f220f7ebb9fb1ff0d6585a5c4ed..5a74aa72470c9f2396f9e0247361a69175866442 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  */
 class CoreExport CullList
 {
-       std::set<classbase*> list;
+       std::vector<classbase*> list;
 
  public:
        /** Adds an item to the cull list
         */
-       void AddItem(classbase* item) { list.insert(item); }
+       void AddItem(classbase* item) { list.push_back(item); }
 
        /** Applies the cull list (deletes the contents)
         */
        void Apply();
 };
 
+class CoreExport ActionList
+{
+       std::vector<HandlerBase0<void>*> list;
+
+ public:
+       /** Adds an item to the list
+        */
+       void AddAction(HandlerBase0<void>* item) { list.push_back(item); }
+
+       /** Runs the items
+        */
+       void Run();
+
+};
+
 #endif