aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_sslinfo.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-04-12 12:48:54 +0100
committerGravatar Sadie Powell2022-04-12 12:48:54 +0100
commit7266f8681d603c58e1281f3e7e2934d61f910ea4 (patch)
treef836b95102576150c0deb52529d77eb3dfa0de0f /src/modules/m_sslinfo.cpp
parentUse ERR_RESTRICTED when an action can't be done even with privileges. (diff)
Add a numeric builder for the ERR_CHANOPRIVSNEEDED numeric.
This should make privilege errors more consistent.
Diffstat (limited to 'src/modules/m_sslinfo.cpp')
-rw-r--r--src/modules/m_sslinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp
index 5f19e8610..bc5ffea7a 100644
--- a/src/modules/m_sslinfo.cpp
+++ b/src/modules/m_sslinfo.cpp
@@ -201,7 +201,7 @@ class CommandSSLInfo : public SplitCommand
if (!source->IsOper() && chan->GetPrefixValue(source) < OP_VALUE)
{
- source->WriteNumeric(ERR_CHANOPRIVSNEEDED, chan->name, "You must be a channel operator.");
+ source->WriteNumeric(Numerics::ChannelPrivilegesNeeded(chan, OP_VALUE, "view TLS (SSL) client certificate information"));
return CMD_FAILURE;
}