aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Matt Schatz2019-06-05 02:02:22 -0600
committerGravatar Peter Powell2019-06-05 09:02:22 +0100
commitd2b94541fc95de18c25bf1b017c20d45cffb9f76 (patch)
treedc1461f7b3bca9843b514018203acff5bce91d7b /src
parentFix a compiler warning introduced in d107093. (#1653) (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.
Diffstat (limited to 'src')
-rw-r--r--src/coremods/core_channel/cmd_topic.cpp2
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;