X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fcull_list.h;h=5a74aa72470c9f2396f9e0247361a69175866442;hb=8cb1935360087b4e38802b837981e5f41e9b87d7;hp=2b3ed13915435fa25d9f18a0c44c4760906827b7;hpb=5fd6471070ecf0f9a0074714c57211e922257014;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/cull_list.h b/include/cull_list.h index 2b3ed1391..5a74aa724 100644 --- a/include/cull_list.h +++ b/include/cull_list.h @@ -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 @@ -33,5 +33,20 @@ class CoreExport CullList void Apply(); }; +class CoreExport ActionList +{ + std::vector*> list; + + public: + /** Adds an item to the list + */ + void AddAction(HandlerBase0* item) { list.push_back(item); } + + /** Runs the items + */ + void Run(); + +}; + #endif