1 // operjoin module by typobox43
7 /* $ModDesc: Forces opers to join a specified channel on oper-up */
11 class ModuleOperjoin : public Module {
23 conf = new ConfigReader;
25 operChan = conf->ReadValue("operjoin", "channel", 0);
29 virtual ~ModuleOperjoin() {
36 virtual Version GetVersion() {
38 return Version(1,0,0,1,VF_VENDOR);
42 virtual void OnOper(userrec* user) {
46 Srv->JoinUserToChannel(user,operChan,"");
54 class ModuleOperjoinFactory : public ModuleFactory
57 ModuleOperjoinFactory()
61 ~ModuleOperjoinFactory()
65 virtual Module * CreateModule()
67 return new ModuleOperjoin;
72 extern "C" void * init_module( void )
74 return new ModuleOperjoinFactory;