mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 03:59:03 -04:00
Fix an inverted condition in the commonchans module.
This commit is contained in:
parent
61b13aa89e
commit
fb507ecec2
@ -34,7 +34,7 @@ class ModuleCommonChans
|
|||||||
return MOD_RES_PASSTHRU;
|
return MOD_RES_PASSTHRU;
|
||||||
|
|
||||||
User* targuser = target.Get<User>();
|
User* targuser = target.Get<User>();
|
||||||
if (!targuser->IsModeSet(mode) || !user->SharesChannelWith(targuser))
|
if (!targuser->IsModeSet(mode) || user->SharesChannelWith(targuser))
|
||||||
return MOD_RES_PASSTHRU;
|
return MOD_RES_PASSTHRU;
|
||||||
|
|
||||||
if (user->HasPrivPermission("users/ignore-commonchans") || user->server->IsULine())
|
if (user->HasPrivPermission("users/ignore-commonchans") || user->server->IsULine())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user