summaryrefslogtreecommitdiff
path: root/modules/chanserv/register.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-10-07 21:11:06 -0400
committerAdam <Adam@anope.org>2017-10-07 21:11:06 -0400
commit85f10a20bb3f59afb0d97e42452f2aea60882551 (patch)
treee3d6bbb3eb75c4165907bb5d551b623ca0777d2b /modules/chanserv/register.cpp
parent2312f1fbd06ac01bb55e1d99070cde05a09a5a17 (diff)
Fix mode locks
Diffstat (limited to 'modules/chanserv/register.cpp')
-rw-r--r--modules/chanserv/register.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/chanserv/register.cpp b/modules/chanserv/register.cpp
index 00fc00927..c00470a2d 100644
--- a/modules/chanserv/register.cpp
+++ b/modules/chanserv/register.cpp
@@ -125,11 +125,13 @@ class CommandCSRegister : public Command
/* Implement new mode lock */
if (c)
{
- c->CheckModes();
if (u)
c->SetCorrectModes(u, true);
EventManager::Get()->Dispatch(&Event::ChanRegistered::OnChanRegistered, ci);
+
+ // Check modes after default lock is applied
+ c->CheckModes();
}
}