1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 08:03:14 +02:00

Rename RPC::Block to RPC::Map.

This commit is contained in:
Sadie Powell
2025-02-23 00:07:05 +00:00
parent a4bfd52b7e
commit ee08b3e880
4 changed files with 26 additions and 26 deletions
+3 -3
View File
@@ -192,19 +192,19 @@ public:
if (c)
{
auto &bans = request.ReplyBlock("bans");
auto &bans = request.ReplyMap("bans");
bans.ReplyUInt("count", c->HasMode("BAN"));
int count = 0;
for (auto &ban : c->GetModeList("BAN"))
bans.Reply(Anope::ToString(++count), ban);
auto &excepts = request.ReplyBlock("excepts");
auto &excepts = request.ReplyMap("excepts");
excepts.ReplyUInt("count", c->HasMode("EXCEPT"));
count = 0;
for (auto &except : c->GetModeList("EXCEPT"))
excepts.Reply(Anope::ToString(++count), except);
auto &invites = request.ReplyBlock("invites");
auto &invites = request.ReplyMap("invites");
invites.ReplyUInt("count", c->HasMode("INVITEOVERRIDE"));
count = 0;
for (auto &invite : c->GetModeList("INVITEOVERRIDE"))