]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_testclient.cpp
Remove InspIRCd* parameters and fields
[user/henk/code/inspircd.git] / src / modules / extra / m_testclient.cpp
index f4bd42f8351ef21ab5cd0db6b69d080feb4b98fa..3e41f533ffcfb284ed0ebe3d69c0754303a2e667 100644 (file)
@@ -2,8 +2,8 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
  */
 
 #include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "configreader.h"
 #include "m_sqlv2.h"
 
 class ModuleTestClient : public Module
@@ -24,9 +20,8 @@ private:
 
 
 public:
-       ModuleTestClient(InspIRCd* Me)
-               : Module::Module(Me)
-       {
+       ModuleTestClient()
+                       {
                Implementation eventlist[] = { I_OnRequest, I_OnBackgroundTimer };
                ServerInstance->Modules->Attach(eventlist, this, 2);
        }
@@ -34,7 +29,7 @@ public:
 
        virtual Version GetVersion()
        {
-               return Version("$Id$", VF_VENDOR, API_VERSION);
+               return Version("Provides SSL support for clients", VF_VENDOR, API_VERSION);
        }
 
        virtual void OnBackgroundTimer(time_t)
@@ -44,7 +39,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 +60,7 @@ public:
 
                        SQLresult* res = (SQLresult*)request;
 
-                       if (res->error.Id() == NO_ERROR)
+                       if (res->error.Id() == SQL_NO_ERROR)
                        {
                                if(res->Cols())
                                {