aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_censor.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-04-27 10:19:35 +0100
committerGravatar Sadie Powell2021-04-27 10:37:04 +0100
commit8526836cf598b49de6fe8e1cef7a169d3de481f8 (patch)
treef9ae452b867f69c6e09913db2dd84ae3fdaba7e3 /src/modules/m_censor.cpp
parentUse parameter pack expansion instead of recursive calls. (diff)
parentFix SendNoticeInternal not having a NULL command variant. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_censor.cpp')
-rw-r--r--src/modules/m_censor.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp
index d3640a802..19fd55229 100644
--- a/src/modules/m_censor.cpp
+++ b/src/modules/m_censor.cpp
@@ -28,13 +28,13 @@
#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
{
private:
CheckExemption::EventProvider exemptionprov;
- censor_t censors;
+ CensorMap censors;
SimpleUserModeHandler cu;
SimpleChannelModeHandler cc;
@@ -106,8 +106,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;
for (const auto& [_, tag] : ServerInstance->Config->ConfTags("badword"))
{
const std::string text = tag->getString("text");