]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sethost.cpp
Add IPV6_V6ONLY support
[user/henk/code/inspircd.git] / src / modules / m_sethost.cpp
index ffbc66ddcf4bb2a2db53cff629f227ccf7f7a912..3634f18983f862d6966b072bcfd3b06784e0898f 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
@@ -66,8 +66,8 @@ class ModuleSetHost : public Module
        CommandSethost cmd;
        char hostmap[256];
  public:
-       ModuleSetHost(InspIRCd* Me)
-               : Module(Me), cmd(this, hostmap)
+       ModuleSetHost()
+               : cmd(this, hostmap)
        {
                OnRehash(NULL);
                ServerInstance->AddCommand(&cmd);
@@ -78,7 +78,7 @@ class ModuleSetHost : public Module
 
        void OnRehash(User* user)
        {
-               ConfigReader Conf(ServerInstance);
+               ConfigReader Conf;
                std::string hmap = Conf.ReadValue("hostname", "charmap", 0);
 
                if (hmap.empty())
@@ -95,7 +95,7 @@ class ModuleSetHost : public Module
 
        virtual Version GetVersion()
        {
-               return Version("Provides support for the SETHOST command", VF_VENDOR, API_VERSION);
+               return Version("Provides support for the SETHOST command", VF_VENDOR);
        }
 
 };