* ---------------------------------------------------
*/
-using namespace std;
-
-#include "inspircd_config.h"
-#include <time.h>
#include <vector>
#include <map>
-#include "users.h"
-#include "ctables.h"
-#include "typedefs.h"
-#include "commands.h"
-#include "globals.h"
-#include "hashcomp.h"
+#include "inspircd_config.h"
#include "inspircd.h"
-#include "inspircd_io.h"
-#include "inspstring.h"
+#include "typedefs.h"
#include "helperfuncs.h"
-
-extern InspIRCd* ServerInstance;
-extern ServerConfig* Config;
-extern time_t TIME;
+#include "timer.h"
typedef std::vector<InspTimer*> timergroup;
typedef std::map<time_t, timergroup*> timerlist;
+
timerlist Timers;
void TickTimers(time_t TIME)
{
InspTimer* n = *y;
n->Tick(TIME);
- delete n;
+ DELETE(n);
}
Timers.erase(found);
- delete x;
+ DELETE(x);
}
}
{
InspTimer* z = *y;
z->Tick(TIME);
- delete z;
+ DELETE(z);
}
Timers.erase(found);
- delete x;
+ DELETE(x);
}
}
}