diff options
author | Adam <Adam@anope.org> | 2010-09-16 21:16:20 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-09-16 21:16:20 -0400 |
commit | 86c1dab2863f228e92ce7e0bd23ffb17cda0242b (patch) | |
tree | d4adf87e720de20eedcd413cc1b7bc9b06247766 /src/modes.cpp | |
parent | cd1e9f3181234521a2858f73b47f57a22c0dad40 (diff) |
Fixed many bugs and crashes
Diffstat (limited to 'src/modes.cpp')
-rw-r--r-- | src/modes.cpp | 2 |
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; |