diff options
author | Sadie Powell <sadie@witchery.services> | 2021-02-01 13:02:07 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-02-01 13:08:21 +0000 |
commit | 35530841cf4f38d0d5d0c3b399681a2eb0a43700 (patch) | |
tree | 6cf5d961f2d9bc3002d57196702c713fd72a50e1 | |
parent | ff06be6c442359aa223aa68c43d1d8c41920fb91 (diff) |
Convert SSLINFO to SplitCommand.
-rw-r--r-- | src/modules/m_sslinfo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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 = "<nick>"; } - 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])); |