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

Only show the last quit message if the user is not online.

This commit is contained in:
Sadie Powell
2025-07-12 15:28:57 +01:00
parent ce7bb15c18
commit a56d9a4096
+4 -2
View File
@@ -120,10 +120,12 @@ public:
info[_("Nick registered")] = Anope::strftime(na->registered, source.GetAccount());
if (!nick_online)
{
info[_("Last seen")] = Anope::strftime(na->last_seen, source.GetAccount());
if (!na->last_quit.empty() && (show_hidden || !na->nc->HasExt("HIDE_QUIT")))
info[_("Last quit message")] = na->last_quit;
if (!na->last_quit.empty() && (show_hidden || !na->nc->HasExt("HIDE_QUIT")))
info[_("Last quit message")] = na->last_quit;
}
if (!na->nc->email.empty() && (show_hidden || !na->nc->HasExt("HIDE_EMAIL")))
info[_("Email address")] = na->nc->email;