1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 07:16:38 +02:00

Add an event for when nick or channel options are set

This commit is contained in:
Adam
2012-10-05 05:03:55 -04:00
parent 7c96227cd3
commit eff61c7a97
30 changed files with 192 additions and 30 deletions
+6 -1
View File
@@ -31,7 +31,12 @@ class CommandCSSetSecureOps : 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;