-
- virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string text)
+};
+
+class ModuleBlockColour : public Module
+{
+ bool AllowChanOps;
+ BlockColor *bc;
+ public:
+
+ ModuleBlockColour(InspIRCd* Me) : Module(Me)
+ {
+ bc = new BlockColor(ServerInstance);
+ if (!ServerInstance->AddMode(bc, 'c'))
+ throw ModuleException("Could not add new modes!");
+ }
+
+ void Implements(char* List)
+ {
+ List[I_OnUserPreMessage] = List[I_OnUserPreNotice] = 1;
+ }
+
+
+ virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list)