summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-02-01 13:02:07 +0000
committerSadie Powell <sadie@witchery.services>2021-02-01 13:08:21 +0000
commit35530841cf4f38d0d5d0c3b399681a2eb0a43700 (patch)
tree6cf5d961f2d9bc3002d57196702c713fd72a50e1 /src/modules
parentff06be6c442359aa223aa68c43d1d8c41920fb91 (diff)
Convert SSLINFO to SplitCommand.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_sslinfo.cpp8
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]));