diff options
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") << ")"; |
