* ---------------------------------------------------
*/
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
#include "inspircd.h"
/* $ModDesc: Forces users to join the specified channel(s) on connect */
OnRehash(NULL, "");
}
+ Priority Prioritize()
+ {
+ return PRIORITY_LAST;
+ }
+
void Implements(char* List)
{
List[I_OnPostConnect] = List[I_OnRehash] = 1;
};
-class ModuleConnJoinFactory : public ModuleFactory
-{
- public:
- ModuleConnJoinFactory()
- {
- }
- ~ModuleConnJoinFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleConnJoin(Me);
- }
-};
-
-extern "C" DllExport void * init_module( void )
-{
- return new ModuleConnJoinFactory;
-}
+MODULE_INIT(ModuleConnJoin)