From eedbc9c88e6cd4dfdc31a813e4826ff84a1ae4f5 Mon Sep 17 00:00:00 2001 From: peavey Date: Tue, 26 Dec 2006 12:08:59 +0000 Subject: 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 --- docs/inspircd.conf.example | 6 +++--- src/modules/m_blockcaps.cpp | 2 +- 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. # # # -# +# #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# # 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; -- cgit v1.2.3