From: w00t Date: Fri, 4 Apr 2008 22:58:06 +0000 (+0000) Subject: Only examine local messages X-Git-Tag: v2.0.23~3497 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=e6cde3ad7792e81fb834f2ace647c54e79da73eb;p=user%2Fhenk%2Fcode%2Finspircd.git Only examine local messages git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9343 e03df62e-2008-0410-955e-edbf42e46eb7 --- 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'))