summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-26 12:08:59 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-26 12:08:59 +0000
commiteedbc9c88e6cd4dfdc31a813e4826ff84a1ae4f5 (patch)
treea145c0f76ebc4c64a577d9709ced131cdcb0d687
parentf9fd76eb5a2933e44984ad22b12ca53ea29f9293 (diff)
Just a little tweak so trigger values makes more sense.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6123 e03df62e-2008-0410-955e-edbf42e46eb7
-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;