- /* 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, I_OnRunTestSuite };
- ServerInstance->Modules->Attach(eventlist, this, 4);
- }
-
-
- virtual ~ModuleCensor()
- {
- ServerInstance->Modes->DelMode(&cu);
- ServerInstance->Modes->DelMode(&cc);