summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2012-05-15 01:51:43 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2012-05-15 01:51:43 -0500
commite4f9a63ecda239f4c53762d102360007751bcaed (patch)
treeb2442c81f753141fc62f7c95224a497b335713bb
parent663f0620bea4dc1e64ec640992f4d511ae1ef97b (diff)
mlock: we should only enforce against modes set by our own clients
-rw-r--r--src/modules/m_mlock.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_mlock.cpp b/src/modules/m_mlock.cpp
index 45ad7453e..9e3c596cc 100644
--- a/src/modules/m_mlock.cpp
+++ b/src/modules/m_mlock.cpp
@@ -46,6 +46,9 @@ public:
if (!channel)
return MOD_RES_PASSTHRU;
+ if (!IS_LOCAL(source))
+ return MOD_RES_PASSTHRU;
+
std::string *mlock_str = mlock.get(channel);
if (!mlock_str || mlock_str->empty())
return MOD_RES_PASSTHRU;