From 421e194c5a19a35a913f9509da0d194f835555a6 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 24 Dec 2013 18:19:44 -0500 Subject: If last usermask and last realhost are the same, don't show both because duh --- modules/commands/ns_info.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/commands/ns_info.cpp b/modules/commands/ns_info.cpp index b74e84763..21e0fab5d 100644 --- a/modules/commands/ns_info.cpp +++ b/modules/commands/ns_info.cpp @@ -71,9 +71,14 @@ class CommandNSInfo : public Command } else { + Anope::string shown; if (show_hidden || !na->nc->HasExt("HIDE_MASK")) + { info[_("Last seen address")] = na->last_usermask; - if (show_hidden && !na->last_realhost.empty()) + shown = na->last_usermask; + } + + if (show_hidden && !na->last_realhost.empty() && na->last_realhost != shown) info[_("Last seen address")] = na->last_realhost; } -- cgit