X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_testnet.cpp;h=401766d8a2eaa358f7833545da6f15e0cc3eac6c;hb=de4b1863536348520c6498e11d910acd050092a7;hp=5951587b36ee5fbdab5d7751508ea29bec66a848;hpb=10a53cc5001e88885b4585582775d4ddd3a4cbde;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_testnet.cpp b/src/modules/m_testnet.cpp index 5951587b3..401766d8a 100644 --- a/src/modules/m_testnet.cpp +++ b/src/modules/m_testnet.cpp @@ -1,16 +1,22 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ +/* + * InspIRCd -- Internet Relay Chat Daemon * - * InspIRCd: (C) 2002-2010 InspIRCd Development Team - * See: http://wiki.inspircd.org/Credits + * Copyright (C) 2009 Daniel De Graaf * - * This program is free but copyrighted software; see - * the file COPYING for details. + * This file is part of InspIRCd. InspIRCd is free software: you can + * redistribute it and/or modify it under the terms of the GNU General Public + * License as published by the Free Software Foundation, version 2. * - * --------------------------------------------------- + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ + /* $ModDesc: Provides a module for testing the server while linked in a network */ #include "inspircd.h" @@ -207,10 +213,14 @@ class ModuleTest : public Module CommandTest cmd; public: ModuleTest() : cmd(this) + { + } + + void init() { if (!strstr(ServerInstance->Config->ServerName.c_str(), ".test")) throw ModuleException("Don't load modules without reading their descriptions!"); - ServerInstance->AddCommand(&cmd); + ServerInstance->Modules->AddService(cmd); } Version GetVersion()