diff options
author | Adam <Adam@anope.org> | 2017-12-03 16:34:19 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-12-03 16:34:19 -0500 |
commit | 2f372251983f6618e1ccc5cfb6214e406ee739a5 (patch) | |
tree | 33eeec06005a41c17b7ee144d6b511f76d723eda /include | |
parent | 733a94902d663adab56f4ac10d5f04a0d69554b6 (diff) |
nickserv/cert: add events
Diffstat (limited to 'include')
-rw-r--r-- | include/modules/nickserv/cert.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/include/modules/nickserv/cert.h b/include/modules/nickserv/cert.h index 0db681122..dc34e0013 100644 --- a/include/modules/nickserv/cert.h +++ b/include/modules/nickserv/cert.h @@ -55,22 +55,16 @@ namespace Event using Events::Events; - /** Called when a user adds an entry to their cert list - * @param nc The nick - * @param entry The entry + /** Called when a certificate is added to an account + * @param cert The certificate */ - virtual void OnNickAddCert(NickServ::Account *nc, const Anope::string &entry) anope_abstract; + virtual void OnNickAddCert(NSCertEntry *cert) anope_abstract; - /** Called from NickServ::Account::EraseCert() - * @param nc pointer to the NickServ::Account + /** Called before a certificate is deleted + * @param cert The certificate * @param entry The fingerprint */ - virtual void OnNickEraseCert(NickServ::Account *nc, const Anope::string &entry) anope_abstract; - - /** called from NickServ::Account::ClearCert() - * @param nc pointer to the NickServ::Account - */ - virtual void OnNickClearCert(NickServ::Account *nc) anope_abstract; + virtual void OnNickEraseCert(NSCertEntry *cert) anope_abstract; }; } |