From 0ada3aeb10294f9252c6b1d69b7d761c969ef12c Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Wed, 26 Feb 2014 13:37:10 +0100 Subject: m_chanfilter Remove needless mode parameter is empty check --- src/modules/m_chanfilter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_chanfilter.cpp') 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; } -- cgit v1.2.3