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