From 35530841cf4f38d0d5d0c3b399681a2eb0a43700 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 1 Feb 2021 13:02:07 +0000 Subject: Convert SSLINFO to SplitCommand. --- src/modules/m_sslinfo.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index 3ced2bc8b..4623b318f 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -144,23 +144,23 @@ class UserCertificateAPIImpl : public UserCertificateAPIBase } }; -class CommandSSLInfo : public Command +class CommandSSLInfo : public SplitCommand { public: UserCertificateAPIImpl sslapi; bool operonlyfp; CommandSSLInfo(Module* Creator) - : Command(Creator, "SSLINFO", 1) + : SplitCommand(Creator, "SSLINFO", 1) , sslapi(Creator) { + allow_empty_last_param = false; syntax = ""; } - CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE + CmdResult HandleLocal(LocalUser* user, const Params& parameters) CXX11_OVERRIDE { User* target = ServerInstance->FindNickOnly(parameters[0]); - if ((!target) || (target->registered != REG_ALL)) { user->WriteNumeric(Numerics::NoSuchNick(parameters[0])); -- cgit v1.2.3