diff options
| author | Adam <Adam@anope.org> | 2012-09-02 08:30:54 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2012-09-02 08:30:54 -0400 |
| commit | 1af64a9bbb150b9daae3944d6aae86864c271103 (patch) | |
| tree | c24a1ac6793e997f83ac66810b611f88855fcd90 /modules/commands | |
| parent | e3d5140dcc936ff411c438b7e3997104cb5f085a (diff) | |
Fix Windows
Diffstat (limited to 'modules/commands')
| -rw-r--r-- | modules/commands/ns_register.cpp | 5 |
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") << ")"; |
