summaryrefslogtreecommitdiff
path: root/modules/commands
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-09-03 18:51:18 -0400
committerAdam <Adam@anope.org>2013-09-03 18:51:18 -0400
commit46913511677b169f32d55e4fc96a8c236169ddc7 (patch)
tree170400c6eabe8e18d0a4809f89a46ff239dfc156 /modules/commands
parent404debf78925f86e94cfd71334433bc1eb423115 (diff)
Cleanup previous commit
Fix log messages from commands send through webpanel Don't show OperServ section to non opers
Diffstat (limited to 'modules/commands')
-rw-r--r--modules/commands/ns_register.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp
index a1c1e7f47..446990aac 100644
--- a/modules/commands/ns_register.cpp
+++ b/modules/commands/ns_register.cpp
@@ -197,6 +197,8 @@ class CommandNSRegister : public Command
na->last_usermask = u->GetIdent() + "@" + u->GetDisplayedHost();
na->last_realname = u->realname;
}
+ else
+ na->last_realname = source.GetNick();
Log(LOG_COMMAND, source, this) << "to register " << na->nick << " (email: " << (!na->nc->email.empty() ? na->nc->email : "none") << ")";