diff options
| author | 2024-08-18 16:04:36 +0100 | |
|---|---|---|
| committer | 2024-08-18 16:19:12 +0100 | |
| commit | d95be0a5165cf3cee3d1feedab1bdbdf21e5e419 (patch) | |
| tree | 20cdde19d3319c1423e63e37e5b26da6d5dad61b /src/modules/m_sslinfo.cpp | |
| parent | Document Write* members in the User type correctly. (diff) | |
Add a formatting overload to {Membership,User}::Write(Remote)Notice.
Diffstat (limited to 'src/modules/m_sslinfo.cpp')
| -rw-r--r-- | src/modules/m_sslinfo.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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()) |
