mirror of
https://github.com/anope/anope.git
synced 2026-07-03 09:53:12 +02:00
Move chan register event prior to applying final mode changes, so cs_mode can set mlock on register. #1620
This commit is contained in:
@@ -67,6 +67,8 @@ class CommandCSRegister : public Command
|
||||
Log(LOG_COMMAND, source, this, ci);
|
||||
source.Reply(_("Channel \002%s\002 registered under your account: %s"), chan.c_str(), nc->display.c_str());
|
||||
|
||||
FOREACH_MOD(OnChanRegistered, (ci));
|
||||
|
||||
/* Implement new mode lock */
|
||||
if (c)
|
||||
{
|
||||
@@ -74,8 +76,6 @@ class CommandCSRegister : public Command
|
||||
if (u)
|
||||
c->SetCorrectModes(u, true);
|
||||
}
|
||||
|
||||
FOREACH_MOD(OnChanRegistered, (ci));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user