]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/cull_list.h
Fix module unmapping with culled Module objects
[user/henk/code/inspircd.git] / include / cull_list.h
index 2b3ed13915435fa25d9f18a0c44c4760906827b7..33e9a7ea6039aa026598230ac49fdefa50a7814b 100644 (file)
@@ -33,5 +33,20 @@ class CoreExport CullList
        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