diff options
author | Sadie Powell <sadie@witchery.services> | 2021-04-17 22:18:17 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-04-17 22:18:17 +0100 |
commit | 01884cb328a677fb8e75807da52b2fd9a96b2225 (patch) | |
tree | bd7747cf63dcb7129728b0038467d77b9e309ff6 | |
parent | 23b8d6bbed74a44bef4936b1f92d0376a974bf76 (diff) |
Rename censor_t to CensorMap as the _t suffix is reserved by POSIX.
-rw-r--r-- | src/modules/m_censor.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp index bd63809ed..b78364b0b 100644 --- a/src/modules/m_censor.cpp +++ b/src/modules/m_censor.cpp @@ -28,12 +28,12 @@ #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) { |