diff options
author | Sadie Powell <sadie@witchery.services> | 2025-02-14 19:47:33 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-02-14 19:47:33 +0000 |
commit | 84b0859e8dec22a03fa42b822146d7666058c557 (patch) | |
tree | 0723c562463347b40006e799f22a84a5d88be82c /include/modules | |
parent | ddce28c055ab2820760bf0ddffa353def3402b6d (diff) |
Fix the naming convention of the RPC methods.
Diffstat (limited to 'include/modules')
-rw-r--r-- | include/modules/rpc.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/modules/rpc.h b/include/modules/rpc.h index c03a2b8d4..7171b73a8 100644 --- a/include/modules/rpc.h +++ b/include/modules/rpc.h @@ -12,6 +12,7 @@ class RPCRequest final { +private: std::map<Anope::string, Anope::string> replies; public: @@ -21,8 +22,8 @@ public: HTTPReply &r; RPCRequest(HTTPReply &_r) : r(_r) { } - inline void reply(const Anope::string &dname, const Anope::string &ddata) { this->replies.emplace(dname, ddata); } - inline const std::map<Anope::string, Anope::string> &get_replies() { return this->replies; } + inline void Reply(const Anope::string &dname, const Anope::string &ddata) { this->replies.emplace(dname, ddata); } + inline const auto &GetReplies() { return this->replies; } }; class RPCServiceInterface; |