summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-11-04 00:09:00 -0500
committerAdam <Adam@anope.org>2014-11-04 00:09:00 -0500
commit408ec02406f115583229216f9b7d9a2c327dfb0a (patch)
treeaa228618d8a77292cbe82204aac1007c57a10386
parent67fc8c34162b6194a960e044569c0886c700c633 (diff)
Move chan register event prior to applying final mode changes, so cs_mode can set mlock on register. #1620
-rw-r--r--modules/commands/cs_register.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/cs_register.cpp b/modules/commands/cs_register.cpp
index 2904f5b51..52e41a4e7 100644
--- a/modules/commands/cs_register.cpp
+++ b/modules/commands/cs_register.cpp
@@ -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));
}
}