X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fextra%2Fm_sslinfo.cpp;h=dc9274f1e9c2909fa5fb2fb3b3ba93d45ea96592;hb=d556a4f8740b65e635ff7d2b976faaedbdac51d4;hp=7c3fbad65ccf7d4efc6e6cd19e54a779cb73158a;hpb=8a72920efc59c7c7b13bcc21edf51599f2a95b30;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/extra/m_sslinfo.cpp b/src/modules/extra/m_sslinfo.cpp index 7c3fbad65..dc9274f1e 100644 --- a/src/modules/extra/m_sslinfo.cpp +++ b/src/modules/extra/m_sslinfo.cpp @@ -2,31 +2,25 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * Written by Craig Edwards, Craig McLure, and others. + * InspIRCd: (C) 2002-2007 InspIRCd Development Team + * See: http://www.inspircd.org/wiki/index.php/Credits + * * This program is free but copyrighted software; see * the file COPYING for details. * * --------------------------------------------------- */ -using namespace std; - -#include +#include "inspircd.h" #include "users.h" #include "channels.h" #include "modules.h" -#include "ssl_cert.h" +#include "transport.h" #include "wildcard.h" -#include "inspircd.h" #include "dns.h" /* $ModDesc: Provides /sslinfo command used to test who a mask matches */ -/* $ModDep: ssl_cert.h */ +/* $ModDep: transport.h */ /** Handle /SSLINFO */ @@ -75,7 +69,7 @@ class ModuleSSLInfo : public Module cmd_sslinfo* newcommand; public: ModuleSSLInfo(InspIRCd* Me) - : Module::Module(Me) + : Module(Me) { newcommand = new cmd_sslinfo(ServerInstance); @@ -96,28 +90,5 @@ class ModuleSSLInfo : public Module } }; - -class ModuleSSLInfoFactory : public ModuleFactory -{ - public: - ModuleSSLInfoFactory() - { - } - - ~ModuleSSLInfoFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleSSLInfo(Me); - } - -}; - - -extern "C" void * init_module( void ) -{ - return new ModuleSSLInfoFactory; -} +MODULE_INIT(ModuleSSLInfo);