1 // operjoin module by typobox43
8 #include "helperfuncs.h"
10 /* $ModDesc: Forces opers to join a specified channel on oper-up */
14 class ModuleOperjoin : public Module
24 conf = new ConfigReader;
25 operChan = conf->ReadValue("operjoin", "channel", 0);
28 virtual ~ModuleOperjoin()
34 virtual Version GetVersion()
36 return Version(1,0,0,1,VF_VENDOR);
39 virtual void OnOper(userrec* user, std::string opertype)
43 Srv->JoinUserToChannel(user,operChan,"");
50 class ModuleOperjoinFactory : public ModuleFactory
53 ModuleOperjoinFactory()
57 ~ModuleOperjoinFactory()
61 virtual Module * CreateModule()
63 return new ModuleOperjoin;
67 extern "C" void * init_module( void )
69 return new ModuleOperjoinFactory;