* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
- * the file COPYING for details.
+ * the file COPYING for details.
*
* ---------------------------------------------------
*/
-#include <stdio.h>
-#include <map>
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-
#include "inspircd.h"
/* $ModDesc: Only opers may create new channels if this module is loaded */
public:
ModuleRestrictChans(InspIRCd* Me)
- : Module::Module(Me)
+ : Module(Me)
{
ReadConfig();
return 0;
}
- virtual ~ModuleRestrictChans()
+ virtual ~ModuleRestrictChans()
{
}
}
};
-
-class ModuleRestrictChansFactory : public ModuleFactory
-{
- public:
- ModuleRestrictChansFactory()
- {
- }
-
- ~ModuleRestrictChansFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleRestrictChans(Me);
- }
-
-};
-
-
-extern "C" void * init_module( void )
-{
- return new ModuleRestrictChansFactory;
-}
-
+MODULE_INIT(ModuleRestrictChans)