X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_cban.cpp;h=21a3533ec52150b048b71ff787ed8525674975ba;hb=d54fd9b1e6b31f69332a9241b5f17330c0ad61e0;hp=cf46b2af90a77156b3a009fead2073d3e249e800;hpb=e84bf9f3ec5a60078c32b272d3d7885c0708c544;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index cf46b2af9..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 = 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));