diff options
-rw-r--r-- | src/modules/m_blockcaps.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp index be366411e..0d76c9c84 100644 --- a/src/modules/m_blockcaps.cpp +++ b/src/modules/m_blockcaps.cpp @@ -86,8 +86,7 @@ public: if (c->IsModeSet('P')) { int caps = 0; - const char* i = text.c_str(); - for (; *i; i++) + for (std::string::iterator i = text.begin(); i != text.end(); i++) { if ( (*i >= 'A') && (*i <= 'Z')) caps++; |