From 1af64a9bbb150b9daae3944d6aae86864c271103 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 2 Sep 2012 08:30:54 -0400 Subject: Fix Windows --- modules/commands/ns_register.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/commands') 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") << ")"; -- cgit