summaryrefslogtreecommitdiff
path: root/modules/commands/ns_set_message.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/ns_set_message.cpp')
-rw-r--r--modules/commands/ns_set_message.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/commands/ns_set_message.cpp b/modules/commands/ns_set_message.cpp
index ccc204189..fa0ad7ec3 100644
--- a/modules/commands/ns_set_message.cpp
+++ b/modules/commands/ns_set_message.cpp
@@ -38,6 +38,11 @@ class CommandNSSetMessage : public Command
return;
}
+ EventReturn MOD_RESULT;
+ FOREACH_RESULT(I_OnSetNickOption, OnSetNickOption(source, this, nc, param));
+ if (MOD_RESULT == EVENT_STOP)
+ return;
+
if (param.equals_ci("ON"))
{
nc->SetFlag(NI_MSG);