- ReadConfig();
- }
-
-
- virtual ModResult OnUserPreJoin(User* user, Channel* chan, const char* cname, std::string &privs, const std::string &keygiven)
- {
- irc::string x = cname;
- if (!IS_LOCAL(user))
- return MOD_RES_PASSTHRU;
-
- // channel does not yet exist (record is null, about to be created IF we were to allow it)
- if (!chan)
+ AllowChans newallows;
+ ConfigTagList tags = ServerInstance->Config->ConfTags("allowchannel");
+ for (ConfigIter i = tags.first; i != tags.second; ++i)