summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/inspircd.conf.example6
-rw-r--r--src/modules/m_blockcaps.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/inspircd.conf.example b/docs/inspircd.conf.example
index bdc8f3ba9..c02b4cb93 100644
--- a/docs/inspircd.conf.example
+++ b/docs/inspircd.conf.example
@@ -991,10 +991,10 @@
# percent - How many percent of text must be caps before text #
# will be blocked. #
# #
-# minlen - The minimum length. Shorter lines than minlen will #
-# be allowed even though percent is reached. #
+# minlen - The minimum length a line must be for the block #
+# percent to have any effect. #
# #
-#<blockcaps percent="94" minlen="6">
+#<blockcaps percent="95" minlen="5">
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# Block colour module: Blocking colour-coded messages with cmode +c
diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp
index ecccf3534..be366411e 100644
--- a/src/modules/m_blockcaps.cpp
+++ b/src/modules/m_blockcaps.cpp
@@ -92,7 +92,7 @@ public:
if ( (*i >= 'A') && (*i <= 'Z'))
caps++;
}
- if ( (caps * 100 / text.size()) > percent )
+ if ( (caps * 100 / text.size()) >= percent )
{
user->WriteServ( "404 %s %s :Can't send all-CAPS to channel (+P set)", user->nick, c->name);
return 1;