From 5846a67c86268a3079f1c73c3ed2f922d71e4374 Mon Sep 17 00:00:00 2001 From: peavey Date: Thu, 15 Mar 2007 23:50:43 +0000 Subject: Change the numeric text to match the new configuration. Tidyup comments and DEBUG. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6680 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_blockcaps.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp index 72e0823db..93c5ecd49 100644 --- a/src/modules/m_blockcaps.cpp +++ b/src/modules/m_blockcaps.cpp @@ -90,14 +90,12 @@ public: int caps = 0; for (std::string::iterator i = text.begin(); i != text.end(); i++) { - //if ( (*i >= 'A') && (*i <= 'Z')) if (capsmap[(unsigned char)*i]) caps++; } - ServerInstance->Log(DEBUG, "<******> Percent caps: " + ConvToStr( ((caps*100)/(int)text.length()) ) + "% >= " + ConvToStr(percent) + "%"); if ( ((caps*100)/(int)text.length()) >= percent ) { - user->WriteServ( "404 %s %s :Can't send all-CAPS to channel (+P set)", user->nick, c->name); + user->WriteServ( "404 %s %s :Your line cannot be more than %d%% capital letters if it is over %d letters long", user->nick, c->name, percent, (int)minlen); return 1; } } -- cgit v1.2.3