X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_setident.cpp;h=04b5c97c858a440ac5e9c49f872af1d40081cf86;hb=da53c17315d3eb0d0177608d306d208bdf05786b;hp=024421347e94370decd8a65a9effd8fec26e314f;hpb=b4542af6b4c69dff7d2c28d9c435304b7d78dc38;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_setident.cpp b/src/modules/m_setident.cpp index 024421347..04b5c97c8 100644 --- a/src/modules/m_setident.cpp +++ b/src/modules/m_setident.cpp @@ -30,10 +30,10 @@ class CommandSetident : public Command CommandSetident(Module* Creator) : Command(Creator,"SETIDENT", 1) { allow_empty_last_param = false; - flags_needed = 'o'; syntax = ""; + flags_needed = 'o'; syntax = ""; } - CmdResult Handle(const std::vector& parameters, User *user) + CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE { if (parameters[0].size() > ServerInstance->Config->Limits.IdentMax) { @@ -63,14 +63,9 @@ class ModuleSetIdent : public Module { } - void init() CXX11_OVERRIDE - { - ServerInstance->Modules->AddService(cmd); - } - Version GetVersion() CXX11_OVERRIDE { - return Version("Provides support for the SETIDENT command", VF_VENDOR); + return Version("Provides the SETIDENT command", VF_VENDOR); } };