From d2b94541fc95de18c25bf1b017c20d45cffb9f76 Mon Sep 17 00:00:00 2001 From: Matt Schatz Date: Wed, 5 Jun 2019 02:02:22 -0600 Subject: 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.--- src/coremods/core_channel/cmd_topic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/coremods/core_channel/cmd_topic.cpp b/src/coremods/core_channel/cmd_topic.cpp index f0af2a0ad..dbce0b2ca 100644 --- 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; -- cgit v1.3.1-10-gc9f91