inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit d2b94541fc95de18c25bf1b017c20d45cffb9f76
parent b8c5df6d1a574ee22d9e1a47e1cd8626cb7a1395
Author: Matt Schatz <genius3000@g3k.solutions>
Date:   Wed,  5 Jun 2019 02:02:22 -0600

Allow channels/auspex to see a secret channel topic. (#1654)

An oper with the 'channels/auspex' priv can now see the
topic of a secret channel (that they are not in) using
TOPIC. This is on par with the expectation of
'channels/auspex' and current LIST behaviour.
Diffstat:
Msrc/coremods/core_channel/cmd_topic.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/coremods/core_channel/cmd_topic.cpp b/src/coremods/core_channel/cmd_topic.cpp @@ -44,7 +44,7 @@ CmdResult CommandTopic::HandleLocal(LocalUser* user, const Params& parameters) if (parameters.size() == 1) { - if ((c->IsModeSet(secretmode)) && (!c->HasUser(user))) + if ((c->IsModeSet(secretmode)) && (!c->HasUser(user) && !user->HasPrivPermission("channels/auspex"))) { user->WriteNumeric(Numerics::NoSuchChannel(c->name)); return CMD_FAILURE;