X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_anticaps.cpp;h=6cb9b940b3c0b119aae73c531008c8675ff455db;hb=0a9c72335a3d3dea286382ad3e7635a05713d7cc;hp=b6167893c1536397a99e6549978cf9770b8e4d70;hpb=eff72815b561c1241a00405485d26331ff0a0788;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_anticaps.cpp b/src/modules/m_anticaps.cpp index b6167893c..6cb9b940b 100644 --- a/src/modules/m_anticaps.cpp +++ b/src/modules/m_anticaps.cpp @@ -103,7 +103,7 @@ class AntiCapsMode : public ParamModeminlen) return MOD_RES_PASSTHRU; // Count the characters to see how many upper case and // ignored (non upper or lower) characters there are. size_t upper = 0; - for (std::string::const_iterator iter = text_begin; iter != text_end; ++iter) + for (std::string::const_iterator iter = msgbody.begin(); iter != msgbody.end(); ++iter) { unsigned char chr = static_cast(*iter); if (uppercase.test(chr))