summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-23 19:13:30 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-23 19:13:30 +0000
commit6279a01bf5b6da48bedfdfe2d39dde69e46ae401 (patch)
tree07f894b3e747d33f2da53439a4a9dfe88db25270 /src
parenta66e7dd858a4757979a7727c87beb72d096f8e9d (diff)
Fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3300 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/timer.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/timer.cpp b/src/timer.cpp
index e6545bf40..31c2c6a13 100644
--- a/src/timer.cpp
+++ b/src/timer.cpp
@@ -50,21 +50,21 @@ void TickTimers(time_t TIME)
if (found != Timers.end())
{
- log("timer.cpp: There are timers to trigger");
- timerlist* x = found->second;
+ log(DEBUG,"timer.cpp: There are timers to trigger");
+ timergroup* x = found->second;
/*
* There are pending timers to trigger
*/
- for (timerlist::iterator y = x.begin(); y != x.end(); y++)
+ for (timergroup::iterator y = x->begin(); y != x->end(); y++)
{
- log("timer.cpp: Triggering a timer");
+ log(DEBUG,"timer.cpp: Triggering a timer");
InspTimer* n = (InspTimer*)*y;
n->Tick(TIME);
- log("timer.cpp: TICK!");
+ log(DEBUG,"timer.cpp: TICK!");
delete n;
}
- log("timer.cpp: Done triggering timers, tidying up");
+ log(DEBUG,"timer.cpp: Done triggering timers, tidying up");
Timers.erase(found);
delete x;
}
@@ -72,7 +72,7 @@ void TickTimers(time_t TIME)
void AddTimer(InspTimer* T)
{
- log("timer.cpp: Adding timer");
+ log(DEBUG,"timer.cpp: Adding timer");
timergroup* x = NULL;
@@ -80,12 +80,12 @@ void AddTimer(InspTimer* T)
if (found != Timers.end())
{
- log("timer.cpp: Add timer to existing group");
+ log(DEBUG,"timer.cpp: Add timer to existing group");
x = found->second;
}
else
{
- log("timer.cpp: Add timer to new group");
+ log(DEBUG,"timer.cpp: Add timer to new group");
x = new timergroup;
Timers[T->GetTimer()] = x;
}