1
0
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:
Adam-
2010-01-14 21:29:08 +00:00
parent f2c44c67b5
commit 711787b54d
17 changed files with 952 additions and 819 deletions
+2 -2
View File
@@ -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;