X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_restrictchans.cpp;h=69e5038612f61e9029e36f1836a18df2fcc594c4;hb=e6d000042ea75d4e0485bec9564b47163a3ca414;hp=e283440f4c42f2d74ac4f7cec2b010a7d065c9ba;hpb=206e3b49c7bfe3e8a7ca972103fe9e30feb3a86a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_restrictchans.cpp b/src/modules/m_restrictchans.cpp index e283440f4..69e503861 100644 --- a/src/modules/m_restrictchans.cpp +++ b/src/modules/m_restrictchans.cpp @@ -11,12 +11,6 @@ * --------------------------------------------------- */ -#include -#include -#include "users.h" -#include "channels.h" -#include "modules.h" - #include "inspircd.h" /* $ModDesc: Only opers may create new channels if this module is loaded */ @@ -85,28 +79,4 @@ class ModuleRestrictChans : public Module } }; - -class ModuleRestrictChansFactory : public ModuleFactory -{ - public: - ModuleRestrictChansFactory() - { - } - - ~ModuleRestrictChansFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleRestrictChans(Me); - } - -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleRestrictChansFactory; -} - +MODULE_INIT(ModuleRestrictChans)