1
0
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:
Adam
2014-11-04 00:09:00 -05:00
parent 67fc8c3416
commit 408ec02406
+2 -2
View File
@@ -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));
}
}