diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/modules.h | 8 | ||||
| -rw-r--r-- | include/users.h | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h index 55697dbb9..0afd033a3 100644 --- a/include/modules.h +++ b/include/modules.h @@ -907,6 +907,12 @@ class CoreExport Module : public Extensible */ virtual void OnNickInfo(User *u, NickAlias *na, bool ShowHidden) { } + /** Called when we get informed about a users SSL fingerprint + * when we call this, the fingerprint should already be stored in the user struct + * @param u pointer to the user + */ + virtual void OnFingerprint(User *u) { } + /** Called when a vhost is deleted * @param na The nickalias of the vhost */ @@ -1032,7 +1038,7 @@ enum Implementation I_OnNickRegister, I_OnNickSuspended, I_OnNickUnsuspended, I_OnDelNick, I_OnDelCore, I_OnChangeCoreDisplay, I_OnDelNickRequest, I_OnMakeNickRequest, I_OnNickClearAccess, I_OnNickAddAccess, I_OnNickEraseAccess, - I_OnNickInfo, + I_OnNickInfo, I_OnFingerprint, /* ChanServ */ I_OnChanForbidden, I_OnChanSuspend, I_OnChanDrop, I_OnPreChanExpire, I_OnChanExpire, I_OnAccessAdd, I_OnAccessChange, diff --git a/include/users.h b/include/users.h index e06c5c5a5..6d4679392 100644 --- a/include/users.h +++ b/include/users.h @@ -48,6 +48,7 @@ class CoreExport User : public Extensible Anope::string vhost; /* User's virtual hostname */ Anope::string chost; /* User's cloaked hostname */ Anope::string realname; /* Realname */ + Anope::string fingerprint; /* SSL Fingerprint */ sockaddrs ip; /* User's IP */ Server *server; /* Server user is connected to */ time_t timestamp; /* Timestamp of the nick */ |
