- if (!IS_LOCAL(user))
- return 0;
-
- if (target_type == TYPE_CHANNEL)
- {
- if (((Channel *)dest)->IsExtBanned(user, 'm'))
- {
- user->WriteServ("NOTICE "+std::string(user->nick)+" :*** Cannot send to " + ((Channel *)dest)->name + ", as you are muted");
- return 1;
- }
- }
-
- return 0;
+ return OnUserPreMessage(user, dest, target_type, text, status, exempt_list);