-
- ReadConfig();
- Implementation eventlist[] = { I_OnUserPreJoin, I_OnRehash };
- ServerInstance->Modules->Attach(eventlist, this, 2);
- }
-
- virtual void OnRehash(User* user, const std::string ¶meter)
- {
- ReadConfig();
- }
-
-
- 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()))