mirror of
https://github.com/anope/anope.git
synced 2026-06-25 17:06:37 +02:00
Changed module callbacks to use new Timer API
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2338 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -445,3 +445,21 @@ bool ModuleManager::SetPriority(Module* mod, Implementation i, Priority s, Modul
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/** Delete all timers attached to a module
|
||||
* @param m The module
|
||||
*/
|
||||
void ModuleManager::ClearTimers(Module *m)
|
||||
{
|
||||
std::list<Timer *>::iterator it;
|
||||
Timer *t2;
|
||||
|
||||
for (it = m->CallBacks.begin(); it != m->CallBacks.end(); ++it)
|
||||
{
|
||||
t2 = *it;
|
||||
|
||||
TimerManager::DelTimer(t2);
|
||||
}
|
||||
|
||||
m->CallBacks.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user