- ModuleCensor()
- : cu(this), cc(this)
- {
- /* Read the configuration file on startup.
- */
- OnRehash(NULL);
- if (!ServerInstance->Modes->AddMode(&cu) || !ServerInstance->Modes->AddMode(&cc))
- throw ModuleException("Could not add new modes!");
- Implementation eventlist[] = { I_OnRehash, I_OnUserPreMessage, I_OnUserPreNotice };
- ServerInstance->Modules->Attach(eventlist, this, 3);
- }
-
-
- virtual ~ModuleCensor()
- {
- }