diff options
author | Adam <Adam@anope.org> | 2012-02-14 15:13:27 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-02-14 15:13:27 -0500 |
commit | a9772cde21407c89abd161d51aff45267f87b1fb (patch) | |
tree | 9e57ba6c121d3843888917d968dd4f5d030b57cf /modules/commands/hs_list.cpp | |
parent | 086790d6331357022f4da17c76b26b9fc6e2ad90 (diff) |
Clean up and reorganize our header files
Diffstat (limited to 'modules/commands/hs_list.cpp')
-rw-r--r-- | modules/commands/hs_list.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/modules/commands/hs_list.cpp b/modules/commands/hs_list.cpp index 54295f52f..acba0528f 100644 --- a/modules/commands/hs_list.cpp +++ b/modules/commands/hs_list.cpp @@ -63,24 +63,24 @@ class CommandHSList : public Command { NickAlias *na = it->second; - if (!na->hostinfo.HasVhost()) + if (!na->HasVhost()) continue; if (!key.empty() && key[0] != '#') { - if ((Anope::Match(na->nick, key) || Anope::Match(na->hostinfo.GetHost(), key)) && display_counter < Config->NSListMax) + if ((Anope::Match(na->nick, key) || Anope::Match(na->GetVhostHost(), key)) && display_counter < Config->NSListMax) { ++display_counter; ListFormatter::ListEntry entry; entry["Number"] = stringify(display_counter); entry["Nick"] = na->nick; - if (!na->hostinfo.GetIdent().empty()) - entry["Vhost"] = na->hostinfo.GetIdent() + "@" + na->hostinfo.GetHost(); + if (!na->GetVhostIdent().empty()) + entry["Vhost"] = na->GetVhostIdent() + "@" + na->GetVhostHost(); else - entry["Vhost"] = na->hostinfo.GetHost(); - entry["Creator"] = na->hostinfo.GetCreator(); - entry["Created"] = do_strftime(na->hostinfo.GetTime()); + entry["Vhost"] = na->GetVhostHost(); + entry["Creator"] = na->GetVhostCreator(); + entry["Created"] = do_strftime(na->GetVhostCreated()); list.addEntry(entry); } } @@ -96,12 +96,12 @@ class CommandHSList : public Command ListFormatter::ListEntry entry; entry["Number"] = stringify(display_counter); entry["Nick"] = na->nick; - if (!na->hostinfo.GetIdent().empty()) - entry["Vhost"] = na->hostinfo.GetIdent() + "@" + na->hostinfo.GetHost(); + if (!na->GetVhostIdent().empty()) + entry["Vhost"] = na->GetVhostIdent() + "@" + na->GetVhostHost(); else - entry["Vhost"] = na->hostinfo.GetHost(); - entry["Creator"] = na->hostinfo.GetCreator(); - entry["Created"] = do_strftime(na->hostinfo.GetTime()); + entry["Vhost"] = na->GetVhostHost(); + entry["Creator"] = na->GetVhostCreator(); + entry["Created"] = do_strftime(na->GetVhostCreated()); list.addEntry(entry); } } |