+ if (!ServerInstance->Modes->AddMode(nc))
+ throw ModuleException("Could not add new modes!");
+ Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice, I_On005Numeric };
+ ServerInstance->Modules->Attach(eventlist, this, 3);
+ }
+
+ virtual ~ModuleNoCTCP()
+ {
+ ServerInstance->Modes->DelMode(nc);
+ delete nc;