+
+ if (target_type == TYPE_USER)
+ active = ((User*)dest)->IsModeSet('G');
+ else if (target_type == TYPE_CHANNEL)
+ {
+ active = ((Channel*)dest)->IsModeSet('G');
+ Channel* c = (Channel*)dest;
+ ModResult res;
+ FIRST_MOD_RESULT(OnChannelRestrictionApply, res, (user,c,"censor"));
+
+ if (res == MOD_RES_ALLOW)
+ return MOD_RES_PASSTHRU;
+ }
+
+ if (!active)
+ return MOD_RES_PASSTHRU;
+