/* $ModDesc: Provides support for unreal-style channel mode +c */
-
-
+/** Handles the +c channel mode
+ */
class BlockColor : public ModeHandler
{
public:
List[I_OnUserPreMessage] = List[I_OnUserPreNotice] = 1;
}
- virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text, char status)
+ virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list)
{
if (target_type == TYPE_CHANNEL)
{
return 0;
}
- virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text, char status)
+ virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list)
{
- return OnUserPreMessage(user,dest,target_type,text,status);
+ return OnUserPreMessage(user,dest,target_type,text,status,exempt_list);
}
virtual ~ModuleBlockColour()
virtual Version GetVersion()
{
- return Version(1,0,0,0,VF_COMMON|VF_VENDOR);
+ return Version(1,1,0,0,VF_COMMON|VF_VENDOR,API_VERSION);
}
};