summaryrefslogtreecommitdiff
path: root/modules/commands/cs_set_topiclock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/cs_set_topiclock.cpp')
-rw-r--r--modules/commands/cs_set_topiclock.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/commands/cs_set_topiclock.cpp b/modules/commands/cs_set_topiclock.cpp
index 80d016a8e..eb0d75e2a 100644
--- a/modules/commands/cs_set_topiclock.cpp
+++ b/modules/commands/cs_set_topiclock.cpp
@@ -31,7 +31,12 @@ class CommandCSSetTopicLock : public Command
return;
}
- if (source.permission.empty() && !source.AccessFor(ci).HasPriv("SET"))
+ EventReturn MOD_RESULT;
+ FOREACH_RESULT(I_OnSetChannelOption, OnSetChannelOption(source, this, ci, params[1]));
+ if (MOD_RESULT == EVENT_STOP)
+ return;
+
+ if (MOD_RESULT != EVENT_ALLOW && source.permission.empty() && !source.AccessFor(ci).HasPriv("SET"))
{
source.Reply(ACCESS_DENIED);
return;