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/os_modinfo.cpp | |
parent | ad3b14c5a20353e65a1b96ee2309a904bf4d5329 (diff) |
Fix some service bot/botinfo mismatches
Diffstat (limited to 'modules/commands/os_modinfo.cpp')
-rw-r--r-- | modules/commands/os_modinfo.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/commands/os_modinfo.cpp b/modules/commands/os_modinfo.cpp index e4e1d986e..f3c6db00f 100644 --- a/modules/commands/os_modinfo.cpp +++ b/modules/commands/os_modinfo.cpp @@ -42,8 +42,15 @@ class CommandOSModInfo : public Command source.Reply(_(" Providing service: \002{0}\002"), c->name); - for (ServiceBot *bi : Serialize::GetObjects<ServiceBot *>(botinfo)) + for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it) { + User *u = it->second; + + if (u->type != UserType::BOT) + continue; + + ServiceBot *bi = anope_dynamic_static_cast<ServiceBot *>(u); + for (CommandInfo::map::const_iterator cit = bi->commands.begin(), cit_end = bi->commands.end(); cit != cit_end; ++cit) { const Anope::string &c_name = cit->first; |