diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-03-04 10:36:10 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-03-04 11:09:50 +0000 |
| commit | 1a8ae513b43d6f5ab5f83740c73d018eafb44d9a (patch) | |
| tree | c5a8c9c1fc246cf7fa691da01afb941809afe1f4 /modules/hostserv/hs_list.cpp | |
| parent | d15ac93a8f5fb5c939807807be52108f7d49f8ed (diff) | |
Add NickAlias::GetVhostMask for getting the vident@vhost.
Diffstat (limited to 'modules/hostserv/hs_list.cpp')
| -rw-r--r-- | modules/hostserv/hs_list.cpp | 10 |
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); |
