diff options
Diffstat (limited to 'src/modules/m_anticaps.cpp')
| -rw-r--r-- | src/modules/m_anticaps.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_anticaps.cpp b/src/modules/m_anticaps.cpp index d4dce8e16..b1bd477cf 100644 --- a/src/modules/m_anticaps.cpp +++ b/src/modules/m_anticaps.cpp @@ -196,11 +196,11 @@ public: const auto& tag = ServerInstance->Config->ConfValue("anticaps"); uppercase.reset(); - for (const auto& chr : tag->getString("uppercase", "ABCDEFGHIJKLMNOPQRSTUVWXYZ", 1)) + for (const auto chr : tag->getString("uppercase", "ABCDEFGHIJKLMNOPQRSTUVWXYZ", 1)) uppercase.set(static_cast<unsigned char>(chr)); lowercase.reset(); - for (const auto& chr : tag->getString("lowercase", "abcdefghijklmnopqrstuvwxyz", 1)) + for (const auto chr : tag->getString("lowercase", "abcdefghijklmnopqrstuvwxyz", 1)) lowercase.set(static_cast<unsigned char>(chr)); } @@ -251,7 +251,7 @@ public: // Count the characters to see how many upper case and // ignored (non upper or lower) characters there are. size_t upper = 0; - for (const auto& chr : msgbody) + for (const auto chr : msgbody) { if (uppercase.test(static_cast<unsigned char>(chr))) upper += 1; |
