diff options
| author | 2008-04-04 22:58:06 +0000 | |
|---|---|---|
| committer | 2008-04-04 22:58:06 +0000 | |
| commit | e6cde3ad7792e81fb834f2ace647c54e79da73eb (patch) | |
| tree | 1f5567f2abfcaa206d70988baf6eeb4afa420083 /src/modules | |
| parent | DOH (diff) | |
| download | inspircd++-e6cde3ad7792e81fb834f2ace647c54e79da73eb.tar.gz inspircd++-e6cde3ad7792e81fb834f2ace647c54e79da73eb.tar.bz2 inspircd++-e6cde3ad7792e81fb834f2ace647c54e79da73eb.zip | |
Only examine local messages
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9343 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
| -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')) |
