diff options
| author | 2007-03-15 23:50:43 +0000 | |
|---|---|---|
| committer | 2007-03-15 23:50:43 +0000 | |
| commit | 5846a67c86268a3079f1c73c3ed2f922d71e4374 (patch) | |
| tree | 486f523cc1a6a335795a58c9a0ed7c36d099b648 /src/modules/m_blockcaps.cpp | |
| parent | Add capsmap to m_blockcaps in example.conf (diff) | |
| download | inspircd++-5846a67c86268a3079f1c73c3ed2f922d71e4374.tar.gz inspircd++-5846a67c86268a3079f1c73c3ed2f922d71e4374.tar.bz2 inspircd++-5846a67c86268a3079f1c73c3ed2f922d71e4374.zip | |
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/m_blockcaps.cpp')
| -rw-r--r-- | src/modules/m_blockcaps.cpp | 4 |
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; } } |
