From 9a44b741869612ba5d729c621a89fcec6c0eb368 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 11 Oct 2024 18:55:22 +0100 Subject: Let the user know about their cert being auto-added to their account. --- language/anope.en_US.po | 8 ++++++-- modules/nickserv/ns_cert.cpp | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/language/anope.en_US.po b/language/anope.en_US.po index 4832f572e..1ec3c030d 100644 --- a/language/anope.en_US.po +++ b/language/anope.en_US.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: Anope\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-09-26 13:24+0100\n" -"PO-Revision-Date: 2024-09-26 13:25+0100\n" +"POT-Creation-Date: 2024-10-11 18:54+0100\n" +"PO-Revision-Date: 2024-10-11 18:54+0100\n" "Last-Translator: Sadie Powell \n" "Language-Team: English\n" "Language: en_US\n" @@ -8603,6 +8603,10 @@ msgstr "Your IRCd does not support SVSPART." msgid "Your IRCd does not support vidents. If this is incorrect please report this as a possible bug." msgstr "Your IRCd does not support vidents. If this is incorrect please report this as a possible bug." +#, c-format +msgid "Your SSL certificate fingerprint %s has been automatically added to your certificate list." +msgstr "Your SSL certificate fingerprint %s has been automatically added to your certificate list." + #, c-format msgid "Your account %s has been successfully created." msgstr "Your account %s has been successfully created." diff --git a/modules/nickserv/ns_cert.cpp b/modules/nickserv/ns_cert.cpp index 5594b2e57..18b2fc394 100644 --- a/modules/nickserv/ns_cert.cpp +++ b/modules/nickserv/ns_cert.cpp @@ -425,6 +425,9 @@ public: auto *cl = certs.Require(na->nc); cl->AddCert(u->fingerprint); + + auto *NickServ = Config->GetClient("NickServ"); + u->SendMessage(NickServ, _("Your SSL certificate fingerprint \002%s\002 has been automatically added to your certificate list."), u->fingerprint.c_str()); } EventReturn OnNickValidate(User *u, NickAlias *na) override -- cgit