]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chghost.cpp
Add server ports to ServerInstance->ports, enable SSL on them using OnHookIO
[user/henk/code/inspircd.git] / src / modules / m_chghost.cpp
index ef3155cb676375957672abbf7de79a903f3d43a0..fdec5d6d0cb0d1ce292898f0b253a51156c03427 100644 (file)
@@ -86,7 +86,7 @@ class ModuleChgHost : public Module
        CommandChghost cmd;
        char hostmap[256];
  public:
-       ModuleChgHost(InspIRCd* Me) : cmd(this, hostmap)
+       ModuleChgHost() : cmd(this, hostmap)
        {
                OnRehash(NULL);
                ServerInstance->AddCommand(&cmd);
@@ -97,7 +97,7 @@ class ModuleChgHost : public Module
 
        void OnRehash(User* user)
        {
-               ConfigReader Conf(ServerInstance);
+               ConfigReader Conf;
                std::string hmap = Conf.ReadValue("hostname", "charmap", 0);
 
                if (hmap.empty())
@@ -114,7 +114,7 @@ class ModuleChgHost : public Module
 
        Version GetVersion()
        {
-               return Version("$Id$", VF_OPTCOMMON | VF_VENDOR, API_VERSION);
+               return Version("Provides support for the CHGHOST command", VF_OPTCOMMON | VF_VENDOR, API_VERSION);
        }
 
 };