diff options
author | Sadie Powell <sadie@witchery.services> | 2025-03-15 23:37:46 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-03-15 23:49:58 +0000 |
commit | 3744649320509e3b6cf2f515fd49c9122577b974 (patch) | |
tree | 70b8a5815bbad06cb879f8358cf5bea9168f76ff /include/modules | |
parent | 30593321f46145185e02a2c6a19a839a47626ee7 (diff) |
Move the RPC service interface to the RPC header.
Diffstat (limited to 'include/modules')
-rw-r--r-- | include/modules/rpc.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/modules/rpc.h b/include/modules/rpc.h index cd0578729..52d1d6492 100644 --- a/include/modules/rpc.h +++ b/include/modules/rpc.h @@ -38,6 +38,8 @@ namespace RPC ERR_METHOD_NOT_FOUND = -32601, ERR_INVALID_PARAMS = -32602, }; + + static ServiceReference<RPC::ServiceInterface> service("RPC::ServiceInterface", "rpc"); } class RPC::Array final @@ -196,8 +198,8 @@ class RPC::ServiceInterface : public Service { public: - ServiceInterface(Module *creator, const Anope::string &sname) - : Service(creator, "RPCServiceInterface", sname) + ServiceInterface(Module *creator) + : Service(creator, "RPC::ServiceInterface", "rpc") { } |