+ std::string chanList = IS_OPER(user)->getConfig("autojoin");
+ if (!chanList.empty())
+ {
+ std::vector<std::string> typechans;
+ tokenize(chanList, typechans);
+ for (std::vector<std::string>::const_iterator it = typechans.begin(); it != typechans.end(); ++it)
+ {
+ if (ServerInstance->IsChannel(it->c_str(), ServerInstance->Config->Limits.ChanMax))
+ {
+ Channel::JoinUser(user, it->c_str(), override, "", false, ServerInstance->Time());
+ }
+ }
+ }