]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_rpc_json.cpp
Remove InspIRCd* parameters and fields
[user/henk/code/inspircd.git] / src / modules / m_rpc_json.cpp
index c014faf6fac892bf06aed69ccfed40f204c1efc7..e57bb77b5be0c4a550699fec07d586768804e317 100644 (file)
@@ -3,7 +3,7 @@
  *       +------------------------------------+
  *
  *  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.
@@ -42,7 +42,7 @@ class ModuleRpcJson : public Module
  private:
 
  public:
-       ModuleRpcJson(InspIRCd *Me) : Module(Me)
+       ModuleRpcJson()
        {
                ServerInstance->Modules->PublishInterface("RPC", this);
                Implementation eventlist[] = { I_OnEvent };
@@ -56,7 +56,7 @@ class ModuleRpcJson : public Module
 
        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);
        }
 
 
@@ -89,7 +89,7 @@ class ModuleRpcJson : public Module
 
                                        RPCRequest modreq("json", method->GetString(), params);
                                        Event mev((char*) &modreq, this, "RPCMethod");
-                                       mev.Send(ServerInstance);
+                                       mev.Send();
 
                                        if (!modreq.claimed)
                                                throw JsonException("Unrecognized method");