diff options
| author | Adam <Adam@anope.org> | 2016-10-22 16:43:18 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2016-10-22 16:52:29 -0400 |
| commit | fce6169f4e134a99dbb19997337b1bb250889147 (patch) | |
| tree | b6f2f6c1bc7094a32b5dc6bb1df97fc4b675e9e0 /modules/nickserv/register.cpp | |
| parent | 06f40cabcb167e2764c03092f6ec3f7383983f95 (diff) | |
Various codestyle cleanup in most of the core modules
Diffstat (limited to 'modules/nickserv/register.cpp')
| -rw-r--r-- | modules/nickserv/register.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/nickserv/register.cpp b/modules/nickserv/register.cpp index 7a392dd7c..e3d4d4d23 100644 --- a/modules/nickserv/register.cpp +++ b/modules/nickserv/register.cpp @@ -97,7 +97,9 @@ class CommandNSConfirm : public Command } } else + { source.Reply(_("Invalid passcode.")); + } } bool OnHelp(CommandSource &source, const Anope::string &subcommand) override @@ -250,7 +252,9 @@ class CommandNSRegister : public Command na->SetLastRealname(u->realname); } else + { na->SetLastRealname(source.GetNick()); + } Log(LOG_COMMAND, source, this) << "to register " << na->GetNick() << " (email: " << (!na->GetAccount()->GetEmail().empty() ? na->GetAccount()->GetEmail() : "none") << ")"; |
