+ ConfigReader* conf = new ConfigReader(ServerInstance);
+
+ operChan = conf->ReadValue("operjoin", "channel", 0);
+ override = conf->ReadFlag("operjoin", "override", "0", 0);
+ operChans.clear();
+ if (!operChan.empty())
+ tokenize(operChan,operChans);
+
+ std::map<std::string, std::vector<std::string> >().swap(operTypeChans);
+
+ int olines = conf->Enumerate("type");
+ for (int index = 0; index < olines; ++index)
+ {
+ std::string chanList = conf->ReadValue("type", "autojoin", index);
+ if (!chanList.empty())
+ {
+ tokenize(chanList, operTypeChans[conf->ReadValue("type", "name", index)]);
+ }
+ }
+
+ delete conf;