summaryrefslogtreecommitdiff
path: root/modules/commands/ns_set_misc.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-10-05 05:03:55 -0400
committerAdam <Adam@anope.org>2012-10-05 05:03:55 -0400
commiteff61c7a9708013f9617282c4f327bbe2b1bfb79 (patch)
tree655b0ff225a53446c5cfd60470988b759bf333fe /modules/commands/ns_set_misc.cpp
parent7c96227cd3dd9c562fb382a9af62e451846328fa (diff)
Add an event for when nick or channel options are set
Diffstat (limited to 'modules/commands/ns_set_misc.cpp')
-rw-r--r--modules/commands/ns_set_misc.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/commands/ns_set_misc.cpp b/modules/commands/ns_set_misc.cpp
index 0b7011892..9c805b3ea 100644
--- a/modules/commands/ns_set_misc.cpp
+++ b/modules/commands/ns_set_misc.cpp
@@ -84,6 +84,11 @@ class CommandNSSetMisc : public Command
}
NickCore *nc = na->nc;
+ EventReturn MOD_RESULT;
+ FOREACH_RESULT(I_OnSetNickOption, OnSetNickOption(source, this, nc, param));
+ if (MOD_RESULT == EVENT_STOP)
+ return;
+
Anope::string scommand = GetAttribute(source.command);
Anope::string key = "ns_set_misc:" + scommand;
nc->Shrink(key);