From 408ec02406f115583229216f9b7d9a2c327dfb0a Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 4 Nov 2014 00:09:00 -0500 Subject: [PATCH] Move chan register event prior to applying final mode changes, so cs_mode can set mlock on register. #1620 --- modules/commands/cs_register.cpp | 4 ++-- 1 file 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)); } }