diff options
author | Adam <Adam@anope.org> | 2012-09-01 18:54:51 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-09-01 18:54:51 -0400 |
commit | e3d5140dcc936ff411c438b7e3997104cb5f085a (patch) | |
tree | 49d7ee0b3e531a1c81e35fb10f25e6340fa781ba /modules/commands | |
parent | f81d0113a21187d68c5fa0f1262e5514465b1953 (diff) |
Added a web panel module + a default template
Diffstat (limited to 'modules/commands')
-rw-r--r-- | modules/commands/ns_register.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp index 0d51ef20c..1a219c8ba 100644 --- a/modules/commands/ns_register.cpp +++ b/modules/commands/ns_register.cpp @@ -224,9 +224,12 @@ class CommandNSRegister : public Command } else if (Config->NSRegistration.equals_ci("none")) { - ircdproto->SendLogin(u); - if (!Config->NoNicknameOwnership && u && na->nc == u->Account() && na->nc->HasFlag(NI_UNCONFIRMED) == false) - u->SetMode(findbot(Config->NickServ), UMODE_REGISTERED); + if (u) + { + ircdproto->SendLogin(u); + if (!Config->NoNicknameOwnership && na->nc == u->Account() && na->nc->HasFlag(NI_UNCONFIRMED) == false) + u->SetMode(findbot(Config->NickServ), UMODE_REGISTERED); + } } if (u) |