X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_timedbans.cpp;h=473785149ced082ddcc771ffe086aa562dbbe35d;hb=cd7657bddc7a6dc2e7326077d173a874bf71f6bd;hp=a1fb41439e2898f04fe270c525e312ee32d44f6e;hpb=9cf56d917d92959701694477f7944d45ad2c38ed;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index a1fb41439..473785149 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -6,22 +6,19 @@ * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ /* $ModDesc: Adds timed bans */ -#include -#include +#include "inspircd.h" #include "users.h" #include "channels.h" #include "modules.h" #include "hashcomp.h" #include "configreader.h" -#include "inspircd.h" - /** Holds a timed ban */ @@ -176,14 +173,14 @@ class ModuleTimedBans : public Module // falls into the abyss :p userrec* temp = new userrec(ServerInstance); temp->SetFd(FD_MAGIC_NUMBER); - /* FIX: Send mode remotely*/ - std::deque n; - n.push_back(setban[0]); - n.push_back("-b"); - n.push_back(setban[2]); + /* FIX: Send mode remotely*/ + std::deque n; + n.push_back(setban[0]); + n.push_back("-b"); + n.push_back(setban[2]); ServerInstance->SendMode(setban,3,temp); - Event rmode((char *)&n, NULL, "send_mode"); - rmode.Send(ServerInstance); + Event rmode((char *)&n, NULL, "send_mode"); + rmode.Send(ServerInstance); DELETE(temp); } else