aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_clearchan.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-04-18 04:37:51 +0100
committerGravatar Sadie Powell2021-04-18 04:58:28 +0100
commit569324feeecea939854e45bbd44495b849fcfd59 (patch)
tree38008340f746112ab17ebb8368f090aeac10aabd /src/modules/m_clearchan.cpp
parentMake the reason parameter to PartUser const. (diff)
Migrate collections from insert to emplace.
Diffstat (limited to 'src/modules/m_clearchan.cpp')
-rw-r--r--src/modules/m_clearchan.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_clearchan.cpp b/src/modules/m_clearchan.cpp
index 543f47d3d..0d656a023 100644
--- a/src/modules/m_clearchan.cpp
+++ b/src/modules/m_clearchan.cpp
@@ -187,7 +187,7 @@ class ModuleClearChan : public Module
// module before us doesn't want them to see it or added the exceptions already.
// If there is a value for this oper in excepts already, this won't overwrite it.
if (found)
- exception.insert(std::make_pair(curr, true));
+ exception.emplace(curr, true);
continue;
}
else if (!include.empty() && curr->chans.size() > 1)