From eff61c7a9708013f9617282c4f327bbe2b1bfb79 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 5 Oct 2012 05:03:55 -0400 Subject: Add an event for when nick or channel options are set --- modules/commands/ns_set_misc.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/commands/ns_set_misc.cpp') 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); -- cgit