* +------------------------------------+
*
* InspIRCd: (C) 2002-2009 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * See: http://wiki.inspircd.org/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
private:
public:
- ModuleRpcJson(InspIRCd *Me) : Module(Me)
+ ModuleRpcJson()
{
ServerInstance->Modules->PublishInterface("RPC", this);
Implementation eventlist[] = { I_OnEvent };
virtual Version GetVersion()
{
- return Version("$Id$", VF_SERVICEPROVIDER | VF_VENDOR, API_VERSION);
+ return Version("Encode and decode JSON-RPC requests for modules", VF_SERVICEPROVIDER | VF_VENDOR, API_VERSION);
}
RPCRequest modreq("json", method->GetString(), params);
Event mev((char*) &modreq, this, "RPCMethod");
- mev.Send(ServerInstance);
+ mev.Send();
if (!modreq.claimed)
throw JsonException("Unrecognized method");