JSON-RPC:Rpc

The  JSON RPC calls give information about the RPC methods available and the version of those modules.

= API Calls =

rpc.set_issuer
Set who is the issuer of all the subsequent commands that are done. This information will be used by the logging system and communicate to servers and IRCOps in the  message tag.

This method only exists in UnrealIRCd 6.1.0 and later

Request arguments
Mandatory:
 * name: the name of the person who is issuing the commands, eg. the current logged in person to the admin panel. NOTE: This name must conform to the regular nickname rules, eg. may not contain spaces and the like.

Response
Returns  on success.

Request arguments
None

Response
A response object, with in the result object a "methods" object which is a list of: the API method with in that the name, module name and module version. Like this: { "jsonrpc": "2.0", "method": "rpc.info", "id": 123, "result": { "methods": { "user.get": { "name": "user.get", "module": "rpc/user", "version": "1.0.0" },     "user.list": { "name": "user.list", "module": "rpc/user", "version": "1.0.0" }, ..etc..

Example
Request: {"jsonrpc": "2.0", "method": "rpc.info", "params": {}, "id": 123}

Response: {"jsonrpc": "2.0", "method": "rpc.info", "id": 123, "result": {"methods": {"user.get": {"name": "user.get", "module": "rpc/user", "version": "1.0.0"}, "user.list": {"name": "user.list", "module": "rpc/user", "version": "1.0.0"}, "channel.list": {"name": "channel.list", "module": "rpc/channel", "version": "1.0.0"}, "server_ban.add": {"name": "server_ban.add", "module": "rpc/server_ban", "version": "1.0.1"}, "server_ban.del": {"name": "server_ban.del", "module": "rpc/server_ban", "version": "1.0.1"}, "server_ban.get": {"name": "server_ban.get", "module": "rpc/server_ban", "version": "1.0.1"}, "server_ban.list": {"name": "server_ban.list", "module": "rpc/server_ban", "version": "1.0.1"}, "spamfilter.add": {"name": "spamfilter.add", "module": "rpc/spamfilter", "version": "1.0.2"}, "spamfilter.del": {"name": "spamfilter.del", "module": "rpc/spamfilter", "version": "1.0.2"}, "spamfilter.get": {"name": "spamfilter.get", "module": "rpc/spamfilter", "version": "1.0.2"}, "spamfilter.list": {"name": "spamfilter.list", "module": "rpc/spamfilter", "version": "1.0.2"}, "rpc.info": {"name": "rpc.info", "module": "rpc/rpc", "version": "1.0.0"}}}}