]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Rename censor_t to CensorMap as the _t suffix is reserved by POSIX.
authorSadie Powell <sadie@witchery.services>
Sat, 17 Apr 2021 21:18:17 +0000 (22:18 +0100)
committerSadie Powell <sadie@witchery.services>
Sat, 17 Apr 2021 21:18:17 +0000 (22:18 +0100)
src/modules/m_censor.cpp

index bd63809ed5bfab1d282bc196708b6d5c619acbac..b78364b0b1d5a190372c0f7d42c5ee9899f912b2 100644 (file)
 #include "inspircd.h"
 #include "modules/exemption.h"
 
-typedef insp::flat_map<std::string, std::string, irc::insensitive_swo> censor_t;
+typedef insp::flat_map<std::string, std::string, irc::insensitive_swo> CensorMap;
 
 class ModuleCensor : public Module
 {
        CheckExemption::EventProvider exemptionprov;
-       censor_t censors;
+       CensorMap censors;
        SimpleUserModeHandler cu;
        SimpleChannelModeHandler cc;
 
@@ -77,7 +77,7 @@ class ModuleCensor : public Module
                                return MOD_RES_PASSTHRU;
                }
 
-               for (censor_t::iterator index = censors.begin(); index != censors.end(); index++)
+               for (CensorMap::const_iterator index = censors.begin(); index != censors.end(); ++index)
                {
                        size_t censorpos;
                        while ((censorpos = irc::find(details.text, index->first)) != std::string::npos)
@@ -104,8 +104,7 @@ class ModuleCensor : public Module
                 * reload our config file on rehash - we must destroy and re-allocate the classes
                 * to call the constructor again and re-read our data.
                 */
-               censor_t newcensors;
-
+               CensorMap newcensors;
                ConfigTagList badwords = ServerInstance->Config->ConfTags("badword");
                for (ConfigIter i = badwords.first; i != badwords.second; ++i)
                {