mirror of
https://github.com/anope/anope.git
synced 2026-07-08 03:03:14 +02:00
Add an event for when nick or channel options are set
This commit is contained in:
@@ -32,6 +32,11 @@ class CommandNSSetLanguage : public Command
|
||||
}
|
||||
NickCore *nc = na->nc;
|
||||
|
||||
EventReturn MOD_RESULT;
|
||||
FOREACH_RESULT(I_OnSetNickOption, OnSetNickOption(source, this, nc, param));
|
||||
if (MOD_RESULT == EVENT_STOP)
|
||||
return;
|
||||
|
||||
for (unsigned j = 0; j < languages.size(); ++j)
|
||||
{
|
||||
if (param == "en" || languages[j] == param)
|
||||
|
||||
Reference in New Issue
Block a user