From 01884cb328a677fb8e75807da52b2fd9a96b2225 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 17 Apr 2021 22:18:17 +0100 Subject: Rename censor_t to CensorMap as the _t suffix is reserved by POSIX. --- src/modules/m_censor.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src') 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 censor_t; +typedef insp::flat_map 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) { -- cgit v1.2.3