diff options
author | Adam <Adam@anope.org> | 2014-05-13 18:38:14 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-05-13 18:38:14 -0400 |
commit | 0c7d53f81ee87a3fb15145de985503d9dc429dae (patch) | |
tree | 3401e4d738d2f36895cdcf0619447f596a61a08f | |
parent | bcc3ae5742da6b8ba58d8a213e35feea069b42a5 (diff) |
Don't show both online from's if they have the same mask in ns_info
-rw-r--r-- | modules/commands/ns_info.cpp | 6 |
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()); |