X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_globops.cpp;h=95a1e1e3744a291a19ef493bf6e3cd8516a533a5;hb=52acbb466b84a1cd161b1c111f855d6f0419fff3;hp=c7889f1a70ab6d07add63e3fc17c92ac42de1468;hpb=7c0c957577a195b4819e4d7f2c9672d7c7522b0d;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_globops.cpp b/src/modules/m_globops.cpp index c7889f1a7..95a1e1e37 100644 --- a/src/modules/m_globops.cpp +++ b/src/modules/m_globops.cpp @@ -2,28 +2,21 @@ * | 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; - // Globops and +g support module by C.J.Edwards -#include -#include +#include "inspircd.h" #include "users.h" #include "channels.h" #include "modules.h" -#include "inspircd.h" /* $ModDesc: Provides support for GLOBOPS and user mode +g */ @@ -47,6 +40,7 @@ class cmd_globops : public command_t } ServerInstance->SNO->WriteToSnoMask('g',line); + /* route it (ofc :p) */ return CMD_SUCCESS; } }; @@ -56,7 +50,7 @@ class ModuleGlobops : public Module cmd_globops* mycommand; public: ModuleGlobops(InspIRCd* Me) - : Module::Module(Me) + : Module(Me) { mycommand = new cmd_globops(ServerInstance); ServerInstance->AddCommand(mycommand); @@ -71,7 +65,7 @@ class ModuleGlobops : public Module virtual Version GetVersion() { - return Version(1, 0, 0, 1, VF_COMMON | VF_VENDOR); + return Version(1, 1, 0, 1, VF_COMMON | VF_VENDOR, API_VERSION); } void Implements(char* List) @@ -98,7 +92,7 @@ class ModuleGlobopsFactory : public ModuleFactory }; -extern "C" void * init_module( void ) +extern "C" DllExport void * init_module( void ) { return new ModuleGlobopsFactory; }