X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_hidemode.cpp;h=3f041344f1ceb53a3366b6f93423bbc6e0e9647d;hb=b4a174ee9c32d62ea6bf010e837e8c5b1c3d36a3;hp=d5ac57115757bcccdca67a31abe6843495dbf480;hpb=87b1461e2a4710a38b32186c2582da9fe9bb3804;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_hidemode.cpp b/src/modules/m_hidemode.cpp index d5ac57115..3f041344f 100644 --- a/src/modules/m_hidemode.cpp +++ b/src/modules/m_hidemode.cpp @@ -1,7 +1,10 @@ /* * InspIRCd -- Internet Relay Chat Daemon * - * Copyright (C) 2016 Attila Molnar + * Copyright (C) 2019 Matt Schatz + * Copyright (C) 2018 linuxdaemon + * Copyright (C) 2018 Sadie Powell + * Copyright (C) 2018 Attila Molnar * * This file is part of InspIRCd. InspIRCd is free software: you can * redistribute it and/or modify it under the terms of the GNU General Public @@ -88,7 +91,7 @@ class ModeHook : public ClientProtocol::EventHook const Modes::Change& curr = *i; if (settings.GetRequiredRank(*curr.mh) <= rank) { - // No restriction on who can see this mode or there is one but the member's rank is sufficient + // No restriction on who can see this mode or there is one but the member's rank is sufficient if (modechangelist) modechangelist->push(curr); @@ -130,6 +133,9 @@ class ModeHook : public ClientProtocol::EventHook if (!chan) return MOD_RES_PASSTHRU; + if (user->HasPrivPermission("channels/auspex")) + return MOD_RES_PASSTHRU; + Membership* const memb = chan->GetUser(user); if (!memb) return MOD_RES_PASSTHRU; @@ -195,7 +201,7 @@ class ModuleHideMode : public Module Version GetVersion() CXX11_OVERRIDE { - return Version("Provides support for hiding mode changes", VF_VENDOR); + return Version("Allows mode changes to be hidden from users without a prefix mode ranked equal to or higher than a defined level.", VF_VENDOR); } };