summaryrefslogtreecommitdiff
path: root/modules/hostserv/hs_list.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-04 10:36:10 +0000
committerSadie Powell <sadie@witchery.services>2024-03-04 10:36:10 +0000
commitdb4f845fe78f82bca4bdb9e44cc785a5a3947d37 (patch)
tree63f1b943fe2baa3f1fbfbabaa63bf805803b3e8c /modules/hostserv/hs_list.cpp
parentd15ac93a8f5fb5c939807807be52108f7d49f8ed (diff)
Add NickAlias::GetVhostMask for getting the vident@vhost.
Diffstat (limited to 'modules/hostserv/hs_list.cpp')
-rw-r--r--modules/hostserv/hs_list.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/modules/hostserv/hs_list.cpp b/modules/hostserv/hs_list.cpp
index 8cda26c38..7b85bead3 100644
--- a/modules/hostserv/hs_list.cpp
+++ b/modules/hostserv/hs_list.cpp
@@ -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);