+
+ return MODEACTION_DENY;
+ }
+};
+
+
+class ModuleStripColor : public Module
+{
+ bool AllowChanOps;
+ ChannelStripColor *csc;
+ UserStripColor *usc;
+
+ public:
+ ModuleStripColor(InspIRCd* Me) : Module(Me)
+ {
+ usc = new UserStripColor(ServerInstance);
+ csc = new ChannelStripColor(ServerInstance);
+
+ if (!ServerInstance->AddMode(usc) || !ServerInstance->AddMode(csc))
+ throw ModuleException("Could not add new modes!");
+ Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice };
+ ServerInstance->Modules->Attach(eventlist, this, 2);