summaryrefslogtreecommitdiff
path: root/modules/commands/bs_botlist.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2015-09-06 16:27:07 -0400
committerAdam <Adam@anope.org>2015-09-06 16:48:25 -0400
commit263dc290d296af2fcdf7f8a9f04735935e9c2580 (patch)
tree2b74e5e463afab1ecc4a6135152c9e3c5b38131e /modules/commands/bs_botlist.cpp
parentad3b14c5a20353e65a1b96ee2309a904bf4d5329 (diff)
Fix some service bot/botinfo mismatches
Diffstat (limited to 'modules/commands/bs_botlist.cpp')
-rw-r--r--modules/commands/bs_botlist.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/commands/bs_botlist.cpp b/modules/commands/bs_botlist.cpp
index fc8bf7732..ce899719e 100644
--- a/modules/commands/bs_botlist.cpp
+++ b/modules/commands/bs_botlist.cpp
@@ -26,14 +26,14 @@ class CommandBSBotList : public Command
list.AddColumn(_("Nick")).AddColumn(_("Mask"));
- for (ServiceBot *bi : Serialize::GetObjects<ServiceBot *>(botinfo))
+ for (BotInfo *bi : Serialize::GetObjects<BotInfo *>(botinfo))
{
- if (source.HasPriv("botserv/administration") || !bi->bi->GetOperOnly())
+ if (source.HasPriv("botserv/administration") || !bi->GetOperOnly())
{
++count;
ListFormatter::ListEntry entry;
- entry["Nick"] = (bi->bi->GetOperOnly() ? "* " : "") + bi->nick;
- entry["Mask"] = bi->GetIdent() + "@" + bi->host;
+ entry["Nick"] = (bi->GetOperOnly() ? "* " : "") + bi->GetNick();
+ entry["Mask"] = bi->GetUser() + "@" + bi->GetHost();
list.AddEntry(entry);
}
}