X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_cban.cpp;h=21a3533ec52150b048b71ff787ed8525674975ba;hb=d54fd9b1e6b31f69332a9241b5f17330c0ad61e0;hp=cf2be71d16fad1518e2b2cfc09d1bd057d55263d;hpb=7775a195d9c417e52eaaf912ec51d62bf0fd9a54;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index cf2be71d1..21a3533ec 100644 --- a/src/modules/m_cban.cpp +++ b/src/modules/m_cban.cpp @@ -16,15 +16,9 @@ */ #include -#include -#include -#include #include "users.h" #include "channels.h" #include "modules.h" -#include "helperfuncs.h" -#include "hashcomp.h" -#include "commands.h" #include "configreader.h" #include "inspircd.h" @@ -92,7 +86,7 @@ class cmd_cban : public command_t // parameters[0] = #channel // parameters[1] = 1h3m2s // parameters[2] = Tortoise abuser - long length = ServerInstance->duration(parameters[1]); + long length = ServerInstance->Duration(parameters[1]); std::string reason = (pcnt > 2) ? parameters[2] : "No reason supplied"; cbans.push_back(CBan(parameters[0], user->nick, ServerInstance->Time(), length, reason));