summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;