From 0c7d53f81ee87a3fb15145de985503d9dc429dae Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 13 May 2014 18:38:14 -0400 Subject: [PATCH] Don't show both online from's if they have the same mask in ns_info --- modules/commands/ns_info.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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());