summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-04 22:58:06 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-04 22:58:06 +0000
commite6cde3ad7792e81fb834f2ace647c54e79da73eb (patch)
tree1f5567f2abfcaa206d70988baf6eeb4afa420083
parent5f5356268c48fd339bef8bed3c54acd903b11661 (diff)
Only examine local messages
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9343 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_quietban.cpp6
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'))