mirror of
https://github.com/anope/anope.git
synced 2026-07-01 15:06:39 +02:00
Burned do_sjoin and rewrote it to be sane. This changes how Anope handles new channel creations drasitcally as we now truely track it all instead of hack around it by not initially tracking user joins to new channels
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2755 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+2
-2
@@ -168,9 +168,9 @@ ChannelModeStatus::~ChannelModeStatus()
|
||||
* @param value The key
|
||||
* @return true or false
|
||||
*/
|
||||
bool ChannelModeKey::IsValid(const char *value)
|
||||
bool ChannelModeKey::IsValid(const std::string &value)
|
||||
{
|
||||
if (value && *value != ':' && !strchr(value, ','))
|
||||
if (!value.empty() && value.find(':') != std::string::npos && value.find(',') != std::string::npos)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user