X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_dccallow.cpp;h=d92aeed82dfaa24f02a5c9b4b07bf2fa62018077;hb=7f00015727fab50e37de46aa90d218b31c852c87;hp=e0d0b96e16b3442d33e2b1ed693681a4059e4a1b;hpb=8c9976bb52f799154a7b221723bb501890e0bde2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index e0d0b96e1..d92aeed82 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -1,6 +1,15 @@ - /* m_dccallow - Jamie Penman-Smithson - September 2006 */ - -using namespace std; +/* +------------------------------------+ + * | Inspire Internet Relay Chat Daemon | + * +------------------------------------+ + * + * 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. + * + * --------------------------------------------------- + */ #include #include @@ -17,21 +26,21 @@ static ConfigReader *Conf; class BannedFileList { public: - std::string filemask; - std::string action; + std::string filemask; + std::string action; }; class DCCAllow { public: - std::string nickname; - std::string hostmask; - time_t set_on; - long length; + std::string nickname; + std::string hostmask; + time_t set_on; + long length; - DCCAllow() { } + DCCAllow() { } - DCCAllow(std::string nick, std::string hm, time_t so, long ln) : nickname(nick), hostmask(hm), set_on(so), length(ln) { } + DCCAllow(const std::string &nick, const std::string &hm, const time_t so, const long ln) : nickname(nick), hostmask(hm), set_on(so), length(ln) { } }; typedef std::vector userlist; @@ -44,470 +53,467 @@ bannedfilelist bfl; class cmd_dccallow : public command_t { public: - cmd_dccallow(InspIRCd* Me) : command_t(Me, "DCCALLOW", 0, 0) - { - this->source = "m_dccallow.so"; - syntax = "{[+|-]