]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cull_list.cpp
Match USERINPUT/USEROUTPUT identifiers
[user/henk/code/inspircd.git] / src / cull_list.cpp
index f87095126c1dcf42d744adb49847dd61a3481f61..1ce6dfae104fff5a9988298b8c18a73d1287e789 100644 (file)
@@ -26,8 +26,8 @@ void CullList::Apply()
                {
                        ServerInstance->Logs->Log("CULLLIST", DEBUG, "Deleting %s @%p", typeid(*c).name(),
                                (void*)c);
-                       if (c->cull())
-                               queue.push_back(c);
+                       c->cull();
+                       queue.push_back(c);
                }
                else
                {
@@ -48,3 +48,11 @@ void CullList::Apply()
        }
 }
 
+void ActionList::Run()
+{
+       for(unsigned int i=0; i < list.size(); i++)
+       {
+               list[i]->Call();
+       }
+       list.clear();
+}