- virtual void OnCleanup(int target_type, void* item)
- {
- cf->DoCleanup(target_type, item);
- }
-
- virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text, char status)
- {
- return OnUserPreMessage(user,dest,target_type,text,status);
- }
-
- virtual void OnSyncChannel(chanrec* chan, Module* proto, void* opaque)
- {
- cf->DoSyncChannel(chan, proto, opaque);
+ if (hidemask)
+ user->WriteNumeric(Numerics::CannotSendTo(chan, "Your part message contained a banned phrase and was blocked."));
+ else
+ user->WriteNumeric(Numerics::CannotSendTo(chan, InspIRCd::Format("Your part message contained a banned phrase (%s) and was blocked.",
+ match->mask.c_str())));