summaryrefslogtreecommitdiff
path: root/modules/hostserv/hs_list.cpp
diff options
context:
space:
mode:
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);