1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 13:43:13 +02:00

Don't show both online from's if they have the same mask in ns_info

This commit is contained in:
Adam
2014-05-13 18:38:14 -04:00
parent bcc3ae5742
commit 0c7d53f81e
+5 -1
View File
@@ -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());