+ AllowChans newallows;
+ ConfigTagList tags = ServerInstance->Config->ConfTags("allowchannel");
+ for (ConfigIter i = tags.first; i != tags.second; ++i)
+ {
+ const std::string name = i->second->getString("name");
+ if (name.empty())
+ throw ModuleException("Empty <allowchannel:name> at " + i->second->getTagLocation());
+
+ newallows.insert(name);
+ }
+ allowchans.swap(newallows);
+
+ // Global config
+ ConfigTag* tag = ServerInstance->Config->ConfValue("restrictchans");
+ allowregistered = tag->getBool("allowregistered", false);