diff options
Diffstat (limited to 'src/modules/m_quietban.cpp')
-rw-r--r-- | src/modules/m_quietban.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_quietban.cpp b/src/modules/m_quietban.cpp index ea5018bd5..296cb20db 100644 --- a/src/modules/m_quietban.cpp +++ b/src/modules/m_quietban.cpp @@ -36,6 +36,9 @@ class ModuleQuietBan : public Module 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')) @@ -50,6 +53,9 @@ class ModuleQuietBan : public Module 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')) |