From fb507ecec27b3e374b02cd208b87977814c726cf Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 14 May 2019 14:06:54 +0100 Subject: Fix an inverted condition in the commonchans module. --- src/modules/m_commonchans.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_commonchans.cpp') diff --git a/src/modules/m_commonchans.cpp b/src/modules/m_commonchans.cpp index f3c206a44..5a30ddddb 100644 --- a/src/modules/m_commonchans.cpp +++ b/src/modules/m_commonchans.cpp @@ -34,7 +34,7 @@ class ModuleCommonChans return MOD_RES_PASSTHRU; User* targuser = target.Get(); - if (!targuser->IsModeSet(mode) || !user->SharesChannelWith(targuser)) + if (!targuser->IsModeSet(mode) || user->SharesChannelWith(targuser)) return MOD_RES_PASSTHRU; if (user->HasPrivPermission("users/ignore-commonchans") || user->server->IsULine()) -- cgit v1.3.1-10-gc9f91