00001 /* Modular support 00002 * 00003 * (C) 2003-2012 Anope Team 00004 * Contact us at team@anope.org 00005 * 00006 * Please read COPYING and README for further details. 00007 * 00008 * Based on the original code of Epona by Lara. 00009 * Based on the original code of Services by Andy Church. 00010 */ 00011 00012 00013 #include "services.h" 00014 #include "modules.h" 00015 00016 std::list<Module *> Modules; 00017 00018 CallBack::CallBack(Module *mod, long time_from_now, time_t now, bool repeating) : Timer(time_from_now, now, repeating), m(mod) 00019 { 00020 } 00021 00022 CallBack::~CallBack() 00023 { 00024 std::list<CallBack *>::iterator it = std::find(m->CallBacks.begin(), m->CallBacks.end(), this); 00025 if (it != m->CallBacks.end()) 00026 m->CallBacks.erase(it); 00027 } 00028
1.7.1