diff options
| author | 2022-04-12 12:48:54 +0100 | |
|---|---|---|
| committer | 2022-04-12 12:48:54 +0100 | |
| commit | 7266f8681d603c58e1281f3e7e2934d61f910ea4 (patch) | |
| tree | f836b95102576150c0deb52529d77eb3dfa0de0f /src/modules/m_sslinfo.cpp | |
| parent | Use 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.cpp | 2 |
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; } |
