From 7266f8681d603c58e1281f3e7e2934d61f910ea4 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 12 Apr 2022 12:48:54 +0100 Subject: Add a numeric builder for the ERR_CHANOPRIVSNEEDED numeric. This should make privilege errors more consistent. --- src/modules/m_sslinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_sslinfo.cpp') 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; } -- cgit v1.3.1-10-gc9f91