From f3ca179e77a49c3a37c6a5530dbb82895fad2bf4 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 16 Aug 2023 16:54:15 +0100 Subject: Fix mode error messages when the character has been remapped. --- src/modules/m_sslmodes.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/modules/m_sslmodes.cpp') diff --git a/src/modules/m_sslmodes.cpp b/src/modules/m_sslmodes.cpp index 44723038d..d5037b195 100644 --- a/src/modules/m_sslmodes.cpp +++ b/src/modules/m_sslmodes.cpp @@ -180,13 +180,15 @@ public: { if (!api) { - user->WriteNumeric(ERR_SECUREONLYCHAN, cname, "Cannot join channel; unable to determine if you are a TLS user (+z is set)"); + user->WriteNumeric(ERR_SECUREONLYCHAN, cname, INSP_FORMAT("Cannot join channel; unable to determine if you are a TLS user (+{} is set)", + sslm.GetModeChar())); return MOD_RES_DENY; } if (!api->IsSecure(user)) { - user->WriteNumeric(ERR_SECUREONLYCHAN, cname, "Cannot join channel; TLS users only (+z is set)"); + user->WriteNumeric(ERR_SECUREONLYCHAN, cname, INSP_FORMAT("Cannot join channel; TLS users only (+{} is set)", + sslm.GetModeChar())); return MOD_RES_DENY; } } -- cgit v1.3.1-10-gc9f91