From 3744649320509e3b6cf2f515fd49c9122577b974 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 15 Mar 2025 23:37:46 +0000 Subject: Move the RPC service interface to the RPC header. --- include/modules/rpc.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') 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 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") { } -- cgit