summaryrefslogtreecommitdiff
path: root/modules/commands/ns_info.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/ns_info.cpp')
-rw-r--r--modules/commands/ns_info.cpp7
1 files changed, 6 insertions, 1 deletions
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;
}