- ReadConfig();
- }
-
- void Implements(char* List)
- {
- List[I_OnUserPreJoin] = List[I_OnRehash] = 1;
- }
-
- virtual int OnUserPreJoin(User* user, Channel* chan, const char* cname, std::string &privs)
- {
- irc::string x = cname;
- // user is not an oper and its not in the allow list
- if ((!IS_OPER(user)) && (allowchans.find(x) == allowchans.end()))