X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_starttls.cpp;h=881ef490b7ef4bc15e86e317743bfd104d495f08;hb=4e3d655dff6f8a5aed626475fbf19c2a7119c20b;hp=054f9c3344e7ffe46d739bbdf1a8ac88ef9d2327;hpb=384056dd0ec72a533de7d9eca0ce25f493d1e152;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_starttls.cpp b/src/modules/m_starttls.cpp index 054f9c334..881ef490b 100644 --- a/src/modules/m_starttls.cpp +++ b/src/modules/m_starttls.cpp @@ -40,27 +40,27 @@ class CommandStartTLS : public SplitCommand works_before_reg = true; } - CmdResult HandleLocal(const std::vector& parameters, LocalUser* user) + CmdResult HandleLocal(LocalUser* user, const Params& parameters) CXX11_OVERRIDE { if (!ssl) { - user->WriteNumeric(ERR_STARTTLS, ":STARTTLS is not enabled"); + user->WriteNumeric(ERR_STARTTLS, "STARTTLS is not enabled"); return CMD_FAILURE; } if (user->registered == REG_ALL) { - user->WriteNumeric(ERR_STARTTLS, ":STARTTLS is not permitted after client registration is complete"); + user->WriteNumeric(ERR_STARTTLS, "STARTTLS is not permitted after client registration is complete"); return CMD_FAILURE; } if (user->eh.GetIOHook()) { - user->WriteNumeric(ERR_STARTTLS, ":STARTTLS failure"); + user->WriteNumeric(ERR_STARTTLS, "STARTTLS failure"); return CMD_FAILURE; } - user->WriteNumeric(RPL_STARTTLS, ":STARTTLS successful, go ahead with TLS handshake"); + user->WriteNumeric(RPL_STARTTLS, "STARTTLS successful, go ahead with TLS handshake"); /* We need to flush the write buffer prior to adding the IOHook, * otherwise we'll be sending this line inside the SSL session - which * won't start its handshake until the client gets this line. Currently, @@ -104,7 +104,7 @@ class ModuleStartTLS : public Module Version GetVersion() CXX11_OVERRIDE { - return Version("Provides support for the STARTTLS command", VF_VENDOR); + return Version("Provides the STARTTLS command", VF_VENDOR); } };