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

Add NickAlias::GetVhostMask for getting the vident@vhost.

This commit is contained in:
Sadie Powell
2024-03-04 10:36:10 +00:00
parent d15ac93a8f
commit db4f845fe7
11 changed files with 30 additions and 69 deletions
+2 -8
View File
@@ -72,10 +72,7 @@ public:
ListFormatter::ListEntry entry;
entry["Number"] = stringify(display_counter);
entry["Nick"] = na->nick;
if (!na->GetVhostIdent().empty())
entry["Vhost"] = na->GetVhostIdent() + "@" + na->GetVhostHost();
else
entry["Vhost"] = na->GetVhostHost();
entry["Vhost"] = na->GetVhostMask();
entry["Creator"] = na->GetVhostCreator();
entry["Created"] = Anope::strftime(na->GetVhostCreated(), NULL, true);
list.AddEntry(entry);
@@ -93,10 +90,7 @@ public:
ListFormatter::ListEntry entry;
entry["Number"] = stringify(display_counter);
entry["Nick"] = na->nick;
if (!na->GetVhostIdent().empty())
entry["Vhost"] = na->GetVhostIdent() + "@" + na->GetVhostHost();
else
entry["Vhost"] = na->GetVhostHost();
entry["Vhost"] = na->GetVhostMask();
entry["Creator"] = na->GetVhostCreator();
entry["Created"] = Anope::strftime(na->GetVhostCreated(), NULL, true);
list.AddEntry(entry);