From 26ac315192e0d8a04d50e910697ab794eedf0cc1 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 20 Apr 2014 14:35:14 -0400 Subject: New event system --- include/modules/ns_cert.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'include/modules/ns_cert.h') diff --git a/include/modules/ns_cert.h b/include/modules/ns_cert.h index e02b9bd6e..b0614b2e6 100644 --- a/include/modules/ns_cert.h +++ b/include/modules/ns_cert.h @@ -69,3 +69,26 @@ class CertService : public Service virtual NickCore* FindAccountFromCert(const Anope::string &cert) = 0; }; +namespace Event +{ + struct CoreExport NickCertEvents : Events + { + /** Called when a user adds an entry to their cert list + * @param nc The nick + * @param entry The entry + */ + virtual void OnNickAddCert(NickCore *nc, const Anope::string &entry) anope_abstract; + + /** Called from NickCore::EraseCert() + * @param nc pointer to the NickCore + * @param entry The fingerprint + */ + virtual void OnNickEraseCert(NickCore *nc, const Anope::string &entry) anope_abstract; + + /** called from NickCore::ClearCert() + * @param nc pointer to the NickCore + */ + virtual void OnNickClearCert(NickCore *nc) anope_abstract; + }; +} + -- cgit