+
+ oc = new OperChans(ServerInstance);
+ if (!ServerInstance->AddMode(oc))
+ throw ModuleException("Could not add new modes!");
+ }
+
+ void Implements(char* List)
+ {
+ List[I_OnUserPreJoin] = 1;
+ }
+
+ virtual int OnUserPreJoin(User* user, Channel* chan, const char* cname, std::string &privs)
+ {
+ if (!IS_OPER(user))