]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setidle.cpp
MAXMODES+1 -> MAXMODES+2
[user/henk/code/inspircd.git] / src / modules / m_setidle.cpp
index b24ca96eed447a1e6005b085030a2bd74ce942e0..f396c5a04d465596069619cd51b1f7f00080ea80 100644 (file)
@@ -2,26 +2,19 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
- *                       E-mail:
- *                <brain@chatspike.net>
- *               <Craig@chatspike.net>
- *     
- * Written by Craig Edwards, Craig McLure, and others.
+ *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
+ *
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
  *
  * ---------------------------------------------------
  */
 
-using namespace std;
-
-#include <stdio.h>
-#include <string>
+#include "inspircd.h"
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
-#include "inspircd.h"
 
 /* $ModDesc: Allows opers to set their idle time */
 
@@ -50,7 +43,7 @@ class cmd_setidle : public command_t
                ServerInstance->WriteOpers(std::string(user->nick)+" used SETIDLE to set their idle time to "+ConvToStr(atoi(parameters[0]))+" seconds");
                user->WriteServ("944 %s :Idle time set.",user->nick);
 
-               return CMD_SUCCESS;
+               return CMD_LOCALONLY;
        }
 };
 
@@ -60,7 +53,7 @@ class ModuleSetIdle : public Module
        cmd_setidle*    mycommand;
  public:
        ModuleSetIdle(InspIRCd* Me)
-               : Module::Module(Me)
+               : Module(Me)
        {
                
                mycommand = new cmd_setidle(ServerInstance);
@@ -73,7 +66,7 @@ class ModuleSetIdle : public Module
        
        virtual Version GetVersion()
        {
-               return Version(1,0,0,1,VF_VENDOR,API_VERSION);
+               return Version(1,1,0,1,VF_VENDOR,API_VERSION);
        }
 };
 
@@ -98,7 +91,7 @@ class ModuleSetIdleFactory : public ModuleFactory
 };
 
 
-extern "C" void * init_module( void )
+extern "C" DllExport void * init_module( void )
 {
        return new ModuleSetIdleFactory;
 }