diff options
author | Sadie Powell <sadie@witchery.services> | 2025-02-23 00:07:05 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-02-23 17:50:05 +0000 |
commit | ee08b3e8804074c73245ca24c3663e43158eb790 (patch) | |
tree | dab5279bd4d3cecc3635b407f25eaf76dec2575c /modules/rpc/rpc_main.cpp | |
parent | a4bfd52b7ed4a11d0795d8f35676c5892812ff43 (diff) |
Rename RPC::Block to RPC::Map.
Diffstat (limited to 'modules/rpc/rpc_main.cpp')
-rw-r--r-- | modules/rpc/rpc_main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/rpc/rpc_main.cpp b/modules/rpc/rpc_main.cpp index cee9d8837..7be09be22 100644 --- a/modules/rpc/rpc_main.cpp +++ b/modules/rpc/rpc_main.cpp @@ -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")) |