X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_rpc_json.cpp;h=1c472aa17b8179af5abbdc6d13bc2ace1ff9d437;hb=2db77cda56947d4ee0f913c8082f6607855ca713;hp=b12de08913de70a528e8258966445aaf06e7a5f5;hpb=2e1f86fd0c9911210b79e6ac346672441eef18c4;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_rpc_json.cpp b/src/modules/m_rpc_json.cpp index b12de0891..1c472aa17 100644 --- a/src/modules/m_rpc_json.cpp +++ b/src/modules/m_rpc_json.cpp @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2007 InspIRCd Development Team + * InspIRCd: (C) 2002-2008 InspIRCd Development Team * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see @@ -27,8 +27,8 @@ class JsonException : public std::exception private: std::string _what; public: - JsonException(const std::string &what) - : _what(what) + JsonException(const std::string &swhat) + : _what(swhat) { } @@ -48,6 +48,8 @@ class ModuleRpcJson : public Module ModuleRpcJson(InspIRCd *Me) : Module(Me) { ServerInstance->Modules->PublishInterface("RPC", this); + Implementation eventlist[] = { I_OnEvent }; + ServerInstance->Modules->Attach(eventlist, this, 1); } virtual ~ModuleRpcJson() @@ -57,13 +59,9 @@ class ModuleRpcJson : public Module virtual Version GetVersion() { - return Version(1, 1, 0, 0, VF_SERVICEPROVIDER | VF_VENDOR, API_VERSION); + return Version(1, 2, 0, 0, VF_SERVICEPROVIDER | VF_VENDOR, API_VERSION); } - void Implements(char *List) - { - List[I_OnEvent] = 1; - } virtual void OnEvent(Event *event) {