1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 08:16:37 +02:00

Fixed many bugs and crashes

This commit is contained in:
Adam
2010-09-16 21:16:20 -04:00
parent cd1e9f3181
commit 86c1dab286
7 changed files with 45 additions and 45 deletions
+1 -1
View File
@@ -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;