X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodules%2Fextra%2Fm_testclient.cpp;h=27394425586f014374bac4ad88757c33c42b6f68;hb=563ad5acb0fb3d1aee5094989377d8b284d33d92;hp=f0492ed786a5a9342a8ce6bd8c7cd371dc5e5967;hpb=d185decae97752368d5cf62311cbc0d1a52aa22c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/extra/m_testclient.cpp b/src/modules/extra/m_testclient.cpp index f0492ed78..273944255 100644 --- a/src/modules/extra/m_testclient.cpp +++ b/src/modules/extra/m_testclient.cpp @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2008 InspIRCd Development Team + * InspIRCd: (C) 2002-2009 InspIRCd Development Team * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see @@ -12,10 +12,6 @@ */ #include "inspircd.h" -#include "users.h" -#include "channels.h" -#include "modules.h" -#include "configreader.h" #include "m_sqlv2.h" class ModuleTestClient : public Module @@ -25,7 +21,7 @@ private: public: ModuleTestClient(InspIRCd* Me) - : Module::Module(Me) + : Module(Me) { Implementation eventlist[] = { I_OnRequest, I_OnBackgroundTimer }; ServerInstance->Modules->Attach(eventlist, this, 2); @@ -34,7 +30,7 @@ public: virtual Version GetVersion() { - return Version(1, 2, 0, 0, VF_VENDOR, API_VERSION); + return Version("$Id$", VF_VENDOR, API_VERSION); } virtual void OnBackgroundTimer(time_t) @@ -44,7 +40,7 @@ public: if(target) { SQLrequest foo = SQLrequest(this, target, "foo", - SQLquery("UPDATE rawr SET foo = '?' WHERE bar = 42") % time(NULL)); + SQLquery("UPDATE rawr SET foo = '?' WHERE bar = 42") % ServerInstance->Time()); if(foo.Send()) { @@ -65,7 +61,7 @@ public: SQLresult* res = (SQLresult*)request; - if (res->error.Id() == NO_ERROR) + if (res->error.Id() == SQL_NO_ERROR) { if(res->Cols()) {