summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_blockcaps.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp
index 1d9ea70a0..e984087d8 100644
--- a/src/modules/m_blockcaps.cpp
+++ b/src/modules/m_blockcaps.cpp
@@ -89,10 +89,7 @@ public:
{
int caps = 0;
for (std::string::iterator i = text.begin(); i != text.end(); i++)
- {
- if (capsmap[(unsigned char)*i])
- caps++;
- }
+ caps += capsmap[(unsigned char)*i];
if ( ((caps*100)/(int)text.length()) >= percent )
{
user->WriteServ( "404 %s %s :Your line cannot be more than %d%% capital letters if it is %d or more letters long", user->nick, c->name, percent, minlen);