]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setname.cpp
Convert more modules
[user/henk/code/inspircd.git] / src / modules / m_setname.cpp
index abc395b52d7446bab77c150c6b2d938881aa2220..bc2810da3227ae83bdff0f1fbdae55424ac5c1c9 100644 (file)
@@ -2,28 +2,20 @@
  *       | 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: Provides support for the SETNAME command */
 
 
@@ -39,7 +31,7 @@ class cmd_setname : public command_t
 
        CmdResult Handle (const char** parameters, int pcnt, userrec *user)
        {
-               std::string line = "";
+               std::string line;
                for (int i = 0; i < pcnt-1; i++)
                {
                        line = line + std::string(parameters[i]) + " ";
@@ -57,7 +49,7 @@ class ModuleSetName : public Module
        cmd_setname*    mycommand;
  public:
        ModuleSetName(InspIRCd* Me)
-               : Module::Module(Me)
+               : Module(Me)
        {
                
                mycommand = new cmd_setname(ServerInstance);
@@ -96,7 +88,7 @@ class ModuleSetNameFactory : public ModuleFactory
 };
 
 
-extern "C" void * init_module( void )
+extern "C" DllExport void * init_module( void )
 {
        return new ModuleSetNameFactory;
 }