X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_restrictchans.cpp;h=1f2416d4470b32ae82273f07ef686267d1508fcc;hb=e9d1efc1ae29ee86b3c2a42bf56531afac7add6d;hp=68fb7357769d076214361b5e724ffe349c82e09d;hpb=ec2106579c77a98dfdb209864a1e1b5ae1f07e7f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_restrictchans.cpp b/src/modules/m_restrictchans.cpp index 68fb73577..1f2416d44 100644 --- a/src/modules/m_restrictchans.cpp +++ b/src/modules/m_restrictchans.cpp @@ -6,19 +6,16 @@ * 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 -#include +#include "inspircd.h" #include "users.h" #include "channels.h" #include "modules.h" -#include "inspircd.h" - /* $ModDesc: Only opers may create new channels if this module is loaded */ class ModuleRestrictChans : public Module @@ -43,7 +40,7 @@ class ModuleRestrictChans : public Module public: ModuleRestrictChans(InspIRCd* Me) - : Module::Module(Me) + : Module(Me) { ReadConfig(); @@ -75,7 +72,7 @@ class ModuleRestrictChans : public Module return 0; } - virtual ~ModuleRestrictChans() + virtual ~ModuleRestrictChans() { } @@ -85,28 +82,4 @@ class ModuleRestrictChans : public Module } }; - -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)