mlock: we should only enforce against modes set by our own clients

This commit is contained in:
William Pitcock 2012-05-15 01:51:43 -05:00
parent 772f45f9d4
commit 9ceb6cc779

View File

@ -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;