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.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/commands/ns_info.cpp b/modules/commands/ns_info.cpp
index 5d9ff8c7a..443b6a9b7 100644
--- a/modules/commands/ns_info.cpp
+++ b/modules/commands/ns_info.cpp
@@ -62,9 +62,13 @@ class CommandNSInfo : public Command
if (nick_online)
{
+ bool shown = false;
if (show_hidden && !na->last_realhost.empty())
+ {
info[_("Online from")] = na->last_realhost;
- if (show_hidden || !na->nc->HasExt("HIDE_MASK"))
+ shown = true;
+ }
+ if ((show_hidden || !na->nc->HasExt("HIDE_MASK")) && (!shown || na->last_usermask != na->last_realhost))
info[_("Online from")] = na->last_usermask;
else
source.Reply(_("%s is currently online."), na->nick.c_str());