From 86c1dab2863f228e92ce7e0bd23ffb17cda0242b Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 16 Sep 2010 21:16:20 -0400 Subject: Fixed many bugs and crashes --- src/modes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit