- void init()
- {
- ServerInstance->Modules->AddService(cmd);
- Implementation eventlist[] = { I_OnBackgroundTimer };
- ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
- ServerInstance->Modes->AddModeWatcher(&banwatcher);
- }
-
- ~ModuleTimedBans()
- {
- ServerInstance->Modes->DelModeWatcher(&banwatcher);
- }
-
- virtual void OnBackgroundTimer(time_t curtime)