summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-15 23:50:43 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-15 23:50:43 +0000
commit5846a67c86268a3079f1c73c3ed2f922d71e4374 (patch)
tree486f523cc1a6a335795a58c9a0ed7c36d099b648 /src/modules
parent9dc59e569676f93de3b5eabb008e06e132ee5e50 (diff)
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
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_blockcaps.cpp4
1 files changed, 1 insertions, 3 deletions
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;
}
}