summaryrefslogtreecommitdiff
path: root/src/modes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modes.cpp')
-rw-r--r--src/modes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modes.cpp b/src/modes.cpp
index d3f8ddb9f..0405cf998 100644
--- a/src/modes.cpp
+++ b/src/modes.cpp
@@ -232,7 +232,7 @@ ChannelModeStatus::~ChannelModeStatus()
*/
bool ChannelModeKey::IsValid(const Anope::string &value) const
{
- if (!value.empty() && value.find(':') != Anope::string::npos && value.find(',') != Anope::string::npos)
+ if (!value.empty() && value.find(':') == Anope::string::npos && value.find(',') == Anope::string::npos)
return true;
return false;