summaryrefslogtreecommitdiff
path: root/src/modules/m_chanfilter.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-02-26 13:37:10 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-02-26 13:37:10 +0100
commit0ada3aeb10294f9252c6b1d69b7d761c969ef12c (patch)
treec758f6eb1412c439aa42f3cbd2b48b3d7b6d0116 /src/modules/m_chanfilter.cpp
parent8776d4fffd0f777c04bc8fa765dd26e51a2f8d9b (diff)
m_chanfilter Remove needless mode parameter is empty check
Diffstat (limited to 'src/modules/m_chanfilter.cpp')
-rw-r--r--src/modules/m_chanfilter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_chanfilter.cpp b/src/modules/m_chanfilter.cpp
index c5a429934..53428a5a8 100644
--- a/src/modules/m_chanfilter.cpp
+++ b/src/modules/m_chanfilter.cpp
@@ -35,9 +35,9 @@ class ChanFilter : public ListModeBase
bool ValidateParam(User* user, Channel* chan, std::string &word)
{
- if ((word.length() > 35) || (word.empty()))
+ if (word.length() > 35)
{
- user->WriteNumeric(935, "%s %s :word is too %s for censor list", chan->name.c_str(), word.c_str(), (word.empty() ? "short" : "long"));
+ user->WriteNumeric(935, "%s %s :word is too long for censor list", chan->name.c_str(), word.c_str());
return false;
}