diff options
Diffstat (limited to 'modules/rpc/jsonrpc.cpp')
-rw-r--r-- | modules/rpc/jsonrpc.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/rpc/jsonrpc.cpp b/modules/rpc/jsonrpc.cpp index 22c00b118..fc4c40e83 100644 --- a/modules/rpc/jsonrpc.cpp +++ b/modules/rpc/jsonrpc.cpp @@ -26,7 +26,7 @@ class MyJSONRPCServiceInterface final , public HTTPPage { private: - Anope::map<RPC::Event *> events; + RPC::Events events; static void SendError(HTTPReply &reply, int64_t code, const Anope::string &message, const Anope::string &id) { @@ -86,6 +86,11 @@ public: { } + const RPC::Events &GetEvents() override + { + return events; + } + bool Register(RPC::Event *event) override { return this->events.emplace(event->GetEvent(), event).second; |