diff options
Diffstat (limited to 'src/modules')
-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; } } |