summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lamont <del6597@rit.edu>2015-07-01 11:24:28 -0700
committerDavid Lamont <del6597@rit.edu>2015-07-01 11:24:28 -0700
commit451784d05664d9da7b8a90af903733ee2e454353 (patch)
tree72d195d4c33d3d53c7aae14d2194d40890bd5dbb
parent8320bcc9df1ea89a47257c9f9c70aa6d476beaa8 (diff)
m_blockcaps Reword error message to indicate 'greater than or equal to' logic when checking caps percentage
-rw-r--r--docs/conf/modules.conf.example4
-rw-r--r--src/modules/m_blockcaps.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/conf/modules.conf.example b/docs/conf/modules.conf.example
index 40dfadbe7..055bdc0b4 100644
--- a/docs/conf/modules.conf.example
+++ b/docs/conf/modules.conf.example
@@ -258,8 +258,8 @@
#
#-#-#-#-#-#-#-#-#-#-#- BLOCKCAPS CONFIGURATION -#-#-#-#-#-#-#-#-#-#-#
# #
-# percent - How many percent of text must be caps before text #
-# will be blocked. #
+# percent - What percentage of the text must be caps before #
+# text will be blocked. #
# #
# minlen - The minimum length a line must be for the block #
# percent to have any effect. #
diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp
index 0a64a75b5..57f86afd1 100644
--- a/src/modules/m_blockcaps.cpp
+++ b/src/modules/m_blockcaps.cpp
@@ -74,7 +74,7 @@ public:
if (((caps * 100) / text.length()) >= percent)
{
- user->WriteNumeric(ERR_CANNOTSENDTOCHAN, "%s :Your message cannot contain more than %d%% capital letters if it's longer than %d characters", c->name.c_str(), percent, minlen);
+ user->WriteNumeric(ERR_CANNOTSENDTOCHAN, "%s :Your message cannot contain %d%% or more capital letters if it's longer than %d characters", c->name.c_str(), percent, minlen);
return MOD_RES_DENY;
}
}