diff options
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; |