#include "services.h"
#include "mass.h"
#include <time.h>
Go to the source code of this file.
Classes | |
struct | t_chain |
Timer list item. More... | |
struct | t_table |
Element of the timer function name table. More... | |
Functions | |
void | autoremoveakill (char *mask) |
Handles automatic removal of expired akills by OperServ. | |
void | killide (char *) |
void | delTimedGhost (char *) |
Handle expiration of a NickServ ghost timer by removing the enforcer. | |
void | deleteTimedGhostChannel (char *) |
void | flushLogs (char *) |
Flush services logs. | |
int | timer (long seconds, void(*func)(char *), void *args) |
Schedules a timer. | |
int | cancel_timer (int tid) |
Cancels a timer event. | |
void | timeralarm (void) |
Check for expired timers. | |
void | dumptimer (char *from) |
Reports the list of timers. | |
Variables | |
t_table | tt [] |
int | curtid = 0 |
t_chain * | firstTimerItem = NULL |
First item in the list of timers. |
Definition in file timer.c.
|
Handles automatic removal of expired akills by OperServ.
Definition at line 857 of file akill.c. References mask(), OperServ, and removeAkill(). Referenced by addakill(), and loadakills(). |
|
Cancels a timer event.
Definition at line 200 of file timer.c. References firstTimerItem, and t_chain::next. Referenced by removeAkill(), and removeAkillType(). |
|
Handle expiration of a NickServ ghost timer by removing the enforcer.
Definition at line 1898 of file nickserv.c. Referenced by addNewUser(), changeNick(), checkAkillAllUsers(), and parseLine(). |
|
Reports the list of timers.
This is part of the debug command /OPERSERV TIMERS Definition at line 268 of file timer.c. References firstTimerItem, t_table::func, t_chain::next, OperServ, and sSend(). |
|
Flush services logs. Performs a 'flush' on the log files resulting in any new services log messages being written to disk Definition at line 103 of file signal.c. References corelog, SLogfile::flush(), flushLogs(), and timer(). Referenced by ConnectToServer(), and parseLine(). |
|
Schedules a timer.
Definition at line 125 of file timer.c. References firstTimerItem, myname, t_chain::next, oalloc(), t_chain::prev, t_chain::run, sSend(), and t_chain::tid. Referenced by addakill(), addNewUser(), addUserToChan(), annoyNickThief(), changeNick(), checkAkillAllUsers(), checkTusers(), expireChans(), flushLogs(), killide(), loadakills(), main(), parseLine(), sync_cfg(), timed_advert_maint(), and timed_akill_queue(). |
|
Check for expired timers. Checks for timers that are expired, runs the specified function on those timers and removes them from the timer list.
Definition at line 236 of file timer.c. References t_chain::args, firstTimerItem, t_chain::func, t_chain::next, t_chain::prev, and t_chain::run. Referenced by main(). |
|
Initial value: { { "autoremoveakill", autoremoveakill }, { "killide", killide }, { "delTimedGhost", delTimedGhost }, { "deleteTimedGhostChannel", deleteTimedGhostChannel }, { "timed_akill_queue", timed_akill_queue }, { "timed_advert_maint", timed_advert_maint }, { "sync_cfg", sync_cfg }, { "expireNicks", expireNicks }, { "expireChans", expireChans }, { "checkTusers", checkTusers }, { "flushLogs", flushLogs } } |