X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_cycle.cpp;h=61deaf58b05093fffdd77bf572a5338fc65837e8;hb=67de413cad88194972d55a8ff88464370890c5a9;hp=bd09f5ae6214d34570e95d3069d03bc10353da8d;hpb=b98acac5c91ecb08da28d70185818a19991eb1db;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_cycle.cpp b/src/modules/m_cycle.cpp index bd09f5ae6..61deaf58b 100644 --- a/src/modules/m_cycle.cpp +++ b/src/modules/m_cycle.cpp @@ -20,8 +20,6 @@ #include "inspircd.h" -/* $ModDesc: Provides command CYCLE, acts as a server-side HOP command to part and rejoin a channel. */ - /** Handle /CYCLE */ class CommandCycle : public SplitCommand @@ -31,7 +29,6 @@ class CommandCycle : public SplitCommand : SplitCommand(Creator, "CYCLE", 1) { Penalty = 3; syntax = " :[reason]"; - TRANSLATE3(TR_TEXT, TR_TEXT, TR_END); } CmdResult HandleLocal(const std::vector ¶meters, LocalUser* user) @@ -61,7 +58,7 @@ class CommandCycle : public SplitCommand if (channel->GetPrefixValue(user) < VOICE_VALUE && channel->IsBanned(user)) { /* banned, boned. drop the message. */ - user->WriteServ("NOTICE "+user->nick+" :*** You may not cycle, as you are banned on channel " + channel->name); + user->WriteNotice("*** You may not cycle, as you are banned on channel " + channel->name); return CMD_FAILURE; } @@ -91,12 +88,12 @@ class ModuleCycle : public Module { } - void init() + void init() CXX11_OVERRIDE { ServerInstance->Modules->AddService(cmd); } - virtual Version GetVersion() + Version GetVersion() CXX11_OVERRIDE { return Version("Provides command CYCLE, acts as a server-side HOP command to part and rejoin a channel.", VF_VENDOR); }