- bool active = false;
- if (target_type == TYPE_USER)
- {
- User* t = (User*)dest;
- active = t->IsModeSet('S');
- }
- else if (target_type == TYPE_CHANNEL)
- {
- Channel* t = (Channel*)dest;
-
- // check if we allow ops to bypass filtering, if we do, check if they're opped accordingly.
- // note: short circut logic here, don't wreck it. -- w00t
- if (CHANOPS_EXEMPT(ServerInstance, 'S') && t->GetStatus(user) == STATUS_OP)
- {
- return 0;