From d95be0a5165cf3cee3d1feedab1bdbdf21e5e419 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 18 Aug 2024 16:04:36 +0100 Subject: Add a formatting overload to {Membership,User}::Write(Remote)Notice. --- src/modules/m_sslinfo.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/modules/m_sslinfo.cpp') diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index 5141aa7a4..b2d148cb5 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -199,17 +199,17 @@ private: ssl_cert* cert = sslapi.GetCertificate(target); if (!cert) { - source->WriteNotice(INSP_FORMAT("*** {} is not connected using TLS.", target->nick)); + source->WriteNotice("*** {} is not connected using TLS.", target->nick); } else if (cert->GetError().length()) { - source->WriteNotice(INSP_FORMAT("*** {} is connected using TLS but has not specified a valid client certificate ({}).", - target->nick, cert->GetError())); + source->WriteNotice("*** {} is connected using TLS but has not specified a valid client certificate ({}).", + target->nick, cert->GetError()); } else if (!verbose) { - source->WriteNotice(INSP_FORMAT("*** {} is connected using TLS with a valid client certificate ({}).", - target->nick, cert->GetFingerprint())); + source->WriteNotice("*** {} is connected using TLS with a valid client certificate ({}).", + target->nick, cert->GetFingerprint()); } else { @@ -262,9 +262,9 @@ private: if (sslonlymode) { - source->WriteNotice(INSP_FORMAT("*** {} {} have channel mode +{} ({}) set.", + source->WriteNotice("*** {} {} have channel mode +{} ({}) set.", chan->name, chan->IsModeSet(sslonlymode) ? "does" : "does not", - sslonlymode->GetModeChar(), sslonlymode->name)); + sslonlymode->GetModeChar(), sslonlymode->name); } for (const auto& [u, _] : chan->GetUsers()) -- cgit v1.3.1-10-gc9f91