diff options
author | Adam <Adam@anope.org> | 2015-09-06 16:27:07 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2015-09-06 16:48:25 -0400 |
commit | 263dc290d296af2fcdf7f8a9f04735935e9c2580 (patch) | |
tree | 2b74e5e463afab1ecc4a6135152c9e3c5b38131e /modules/commands/bs_botlist.cpp | |
parent | ad3b14c5a20353e65a1b96ee2309a904bf4d5329 (diff) |
Fix some service bot/botinfo mismatches
Diffstat (limited to 'modules/commands/bs_botlist.cpp')
-rw-r--r-- | modules/commands/bs_botlist.cpp | 8 |
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); } } |