]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_codepage.cpp
Fixes by misspell-fixer
[user/henk/code/inspircd.git] / src / modules / m_codepage.cpp
index 911a4781e833e02887489921decd46b7b5b6c3c4..7a20e6e52dc6f695597f7d6e897354d96762e225 100644 (file)
@@ -2,7 +2,6 @@
  * InspIRCd -- Internet Relay Chat Daemon
  *
  *   Copyright (C) 2020 Sadie Powell <sadie@witchery.services>
- *   Copyright (C) 2014 Googolplexed <googol@googolplexed.net>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
  * redistribute it and/or modify it under the terms of the GNU General Public
@@ -114,6 +113,8 @@ class ModuleCodepage
                ServerInstance->Config->CaseMapping = origcasemapname;
                national_case_insensitive_map = origcasemap;
                CheckRehash(casemap);
+
+               ServerInstance->ISupport.Build();
        }
 
        void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE
@@ -132,7 +133,7 @@ class ModuleCodepage
                        unsigned char begin = tag->getUInt("begin", tag->getUInt("index", 0), 1, UCHAR_MAX);
                        if (!begin)
                                throw ModuleException("<cpchars> tag without index or begin specified at " + tag->getTagLocation());
-       
+
                        unsigned char end = tag->getUInt("end", begin, 1, UCHAR_MAX);
                        if (begin > end)
                                throw ModuleException("<cpchars:begin> must be lower than <cpchars:end> at " + tag->getTagLocation());
@@ -190,6 +191,8 @@ class ModuleCodepage
                ServerInstance->Config->CaseMapping = name;
                national_case_insensitive_map = casemap;
                CheckRehash(newcasemap);
+
+               ServerInstance->ISupport.Build();
        }
 
        Version GetVersion() CXX11_OVERRIDE
@@ -211,7 +214,7 @@ class ModuleCodepage
                        if (casemap[i] != i)
                                linkdata << static_cast<unsigned char>(i) << casemap[i] << ',';
 
-               return Version("Provides support for custom 8-bit codepages", VF_COMMON | VF_VENDOR, linkdata.str());
+               return Version("Allows the server administrator to define what characters are allowed in nicknames and how characters should be compared in a case insensitive way.", VF_COMMON | VF_VENDOR, linkdata.str());
        }
 };
 MODULE_INIT(ModuleCodepage)