virtual int OnUserPreMessage(User *user, void *dest, int target_type, std::string &text, char status, CUList &exempt_list)
{
+ if (!IS_LOCAL(user))
+ return 0;
+
if (target_type == TYPE_CHANNEL)
{
if (((Channel *)dest)->IsExtBanned(user, 'q'))
virtual int OnUserPreNotice(User *user, void *dest, int target_type, std::string &text, char status, CUList &exempt_list)
{
+ if (!IS_LOCAL(user))
+ return 0;
+
if (target_type == TYPE_CHANNEL)
{
if (((Channel *)dest)->IsExtBanned(user, 'q'))
if (output.find(" EXTBAN=:") == std::string::npos)
output.append(" EXTBAN=:q");
else
- output.insert(output.find(" EXTBAN=:") + 8, "q");
+ output.insert(output.find(" EXTBAN=:") + 9, "q");
}
};