1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 01:23:13 +02:00

Rework the InfoFormatter/ListFormatter APIs and move to textproc.

This commit is contained in:
Sadie Powell
2025-09-19 11:36:57 +01:00
parent 3b2d798e76
commit 59bb9d3d06
34 changed files with 76 additions and 268 deletions
+2 -12
View File
@@ -58,12 +58,7 @@ public:
info[_("Used on")] = Anope::Format(Language::Translate(source.nc, bi->GetChannelCount(), N_("%u channel", "%u channels")), bi->GetChannelCount());
FOREACH_MOD(OnBotInfo, (source, bi, ci, info));
std::vector<Anope::string> replies;
info.Process(replies);
for (const auto &reply : replies)
source.Reply(reply);
info.SendTo(source);
if (source.HasPriv("botserv/administration"))
{
@@ -89,12 +84,7 @@ public:
Anope::string disabled = Language::Translate(source.nc, _("Disabled"));
FOREACH_MOD(OnBotInfo, (source, bi, ci, info));
std::vector<Anope::string> replies;
info.Process(replies);
for (const auto &reply : replies)
source.Reply(reply);
info.SendTo(source);
}
else
source.Reply(_("\002%s\002 is not a valid bot or registered channel."), query.c_str());