mirror of
https://github.com/anope/anope.git
synced 2026-06-29 19:56:37 +02:00
Simplify several boolean expressions.
This commit is contained in:
+1
-4
@@ -233,10 +233,7 @@ bool UserModeNoone::CanSet(User *u) const
|
||||
|
||||
bool ChannelModeKey::IsValid(Anope::string &value) const
|
||||
{
|
||||
if (!value.empty() && value.find(':') == Anope::string::npos && value.find(',') == Anope::string::npos)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return !value.empty() && value.find(':') == Anope::string::npos && value.find(',') == Anope::string::npos;
|
||||
}
|
||||
|
||||
bool ChannelModeOperOnly::CanSet(User *u) const
|
||||
|
||||
Reference in New Issue
Block a user