mirror of
https://github.com/anope/anope.git
synced 2026-07-10 15:43:13 +02:00
Add an event for when nick or channel options are set
This commit is contained in:
@@ -37,6 +37,11 @@ class CommandNSSetDisplay : public Command
|
||||
return;
|
||||
}
|
||||
|
||||
EventReturn MOD_RESULT;
|
||||
FOREACH_RESULT(I_OnSetNickOption, OnSetNickOption(source, this, user_na->nc, param));
|
||||
if (MOD_RESULT == EVENT_STOP)
|
||||
return;
|
||||
|
||||
change_core_display(user_na->nc, na->nick);
|
||||
source.Reply(NICK_SET_DISPLAY_CHANGED, user_na->nc->display.c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user