summaryrefslogtreecommitdiff
path: root/modules/commands
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-09-02 08:30:54 -0400
committerAdam <Adam@anope.org>2012-09-02 08:30:54 -0400
commit1af64a9bbb150b9daae3944d6aae86864c271103 (patch)
treec24a1ac6793e997f83ac66810b611f88855fcd90 /modules/commands
parente3d5140dcc936ff411c438b7e3997104cb5f085a (diff)
Fix Windows
Diffstat (limited to 'modules/commands')
-rw-r--r--modules/commands/ns_register.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp
index 1a219c8ba..953fd2d89 100644
--- a/modules/commands/ns_register.cpp
+++ b/modules/commands/ns_register.cpp
@@ -191,9 +191,10 @@ class CommandNSRegister : public Command
na->last_realname = u->realname;
u->Login(nc);
+
+ if (Config->NSAddAccessOnReg)
+ nc->AddAccess(create_mask(u));
}
- if (Config->NSAddAccessOnReg)
- nc->AddAccess(create_mask(u));
Log(LOG_COMMAND, source, this) << "to register " << na->nick << " (email: " << (!na->nc->email.empty() ? na->nc->email : "none") << ")";