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_greet.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/commands/ns_set_greet.cpp') diff --git a/modules/commands/ns_set_greet.cpp b/modules/commands/ns_set_greet.cpp index 65e8ffd7f..87ac7d1ee 100644 --- a/modules/commands/ns_set_greet.cpp +++ b/modules/commands/ns_set_greet.cpp @@ -32,6 +32,11 @@ class CommandNSSetGreet : public Command } NickCore *nc = na->nc; + EventReturn MOD_RESULT; + FOREACH_RESULT(I_OnSetNickOption, OnSetNickOption(source, this, nc, param)); + if (MOD_RESULT == EVENT_STOP) + return; + if (!param.empty()) { nc->greet = param; -- cgit