X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_dccallow.cpp;h=68090a8c3b602309c60ba652a21e34bf25cf6c81;hb=b5965b08c23e3e89404b481386f2e56ce7cb7ce2;hp=abcad9de92333f65b3b79843f9c33b3a1e90e83c;hpb=8e89fe75f9467969bce1dc6930befc6ef273edf6;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index abcad9de9..68090a8c3 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -2,8 +2,8 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2008 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits + * InspIRCd: (C) 2002-2010 InspIRCd Development Team + * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see * the file COPYING for details. @@ -15,16 +15,14 @@ /* $ModDesc: Povides support for the /DCCALLOW command */ -static ConfigReader *Conf; - -class BannedFileList : public classbase +class BannedFileList { public: std::string filemask; std::string action; }; -class DCCAllow : public classbase +class DCCAllow { public: std::string nickname; @@ -43,13 +41,13 @@ typedef std::vector dccallowlist; dccallowlist* dl; typedef std::vector bannedfilelist; bannedfilelist bfl; +SimpleExtItem* ext; class CommandDccallow : public Command { public: - CommandDccallow(InspIRCd* Me) : Command(Me, "DCCALLOW", 0, 0) + CommandDccallow(Module* parent) : Command(parent, "DCCALLOW", 0) { - this->source = "m_dccallow.so"; syntax = "{[+|-]