aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_blockcaps.cpp
diff options
context:
space:
mode:
authorGravatar brain2007-02-07 17:03:15 +0000
committerGravatar brain2007-02-07 17:03:15 +0000
commit0b34769b9e3b9e823763cfd8bf3e2d64c2426710 (patch)
tree177b1a11f15c3fea8a9c72cd79b99c114d4defb3 /src/modules/m_blockcaps.cpp
parentExtra safety checks while exchanging certs, just in case (diff)
downloadinspircd++-0b34769b9e3b9e823763cfd8bf3e2d64c2426710.tar.gz
inspircd++-0b34769b9e3b9e823763cfd8bf3e2d64c2426710.tar.bz2
inspircd++-0b34769b9e3b9e823763cfd8bf3e2d64c2426710.zip
Fix for bug #205 reported by nenolod (modules that erroneously check remote users to apply privmsg/notice restrictions)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6532 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_blockcaps.cpp')
-rw-r--r--src/modules/m_blockcaps.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp
index 058336fb3..856f0c969 100644
--- a/src/modules/m_blockcaps.cpp
+++ b/src/modules/m_blockcaps.cpp
@@ -77,7 +77,7 @@ public:
virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list)
{
- if (text.size() < minlen)
+ if ((text.size() < minlen) || (!IS_LOCAL(user)))
return 0;
if (target_type == TYPE_CHANNEL)