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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user