From c2780e1de47b4aead8ca5e2c7a7675ea987a9bb4 Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Thu, 11 Aug 2011 22:21:40 +0200 Subject: Added a separate field for last seen realhost to ns_info, shown to services admins only --- modules/commands/ns_info.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/commands') 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()); -- cgit