mirror of
https://github.com/anope/anope.git
synced 2026-07-06 22:43:12 +02:00
Add an event for when nick or channel options are set
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user