From e6cde3ad7792e81fb834f2ace647c54e79da73eb Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 4 Apr 2008 22:58:06 +0000 Subject: Only examine local messages git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9343 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_quietban.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/modules/m_quietban.cpp') 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')) -- cgit v1.2.3