summaryrefslogtreecommitdiff
path: root/modules/commands/ns_info.cpp
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@anope.org>2011-08-11 22:21:40 +0200
committerDukePyrolator <DukePyrolator@anope.org>2011-08-11 22:21:40 +0200
commitc2780e1de47b4aead8ca5e2c7a7675ea987a9bb4 (patch)
tree30a58f896a582cbf0278c486a8f1b200ef35bb32 /modules/commands/ns_info.cpp
parent4e1f54ff9c9da71b657e024e67fc0966e7a82825 (diff)
Added a separate field for last seen realhost to ns_info, shown to services admins only
Diffstat (limited to 'modules/commands/ns_info.cpp')
-rw-r--r--modules/commands/ns_info.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/commands/ns_info.cpp b/modules/commands/ns_info.cpp
index 5a6d9dc0c..15dc22546 100644
--- a/modules/commands/ns_info.cpp
+++ b/modules/commands/ns_info.cpp
@@ -73,11 +73,16 @@ class CommandNSInfo : public Command
source.Reply(_(" Is online from: %s"), na->last_usermask.c_str());
else
source.Reply(_("%s is currently online."), na->nick.c_str());
+
+ if (has_auspex && !na->last_realhost.empty())
+ source.Reply(_(" Is online from: %s"), na->last_realhost.c_str());
}
else
{
if (show_hidden || !na->nc->HasFlag(NI_HIDE_MASK))
source.Reply(_("Last seen address: %s"), na->last_usermask.c_str());
+ if (has_auspex && !na->last_realhost.empty())
+ source.Reply(_("Last seen address: %s"), na->last_realhost.c_str());
}
source.Reply(_(" Time registered: %s"), do_strftime(na->time_registered).c_str());