diff options
author | Matt Schatz <genius3000@g3k.solutions> | 2019-06-05 02:02:22 -0600 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-06-05 09:02:22 +0100 |
commit | d2b94541fc95de18c25bf1b017c20d45cffb9f76 (patch) | |
tree | dc1461f7b3bca9843b514018203acff5bce91d7b | |
parent | b8c5df6d1a574ee22d9e1a47e1cd8626cb7a1395 (diff) |
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.
-rw-r--r-- | src/coremods/core_channel/cmd_topic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |