diff options
author | Sadie Powell <sadie@witchery.services> | 2024-03-12 00:14:13 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-03-12 11:02:08 +0000 |
commit | 04e1a4f5c8c4172ca36dd79dfd0731f4aba873a5 (patch) | |
tree | 52caf9828c7fdb497c323b32e00b68b566db325a /include | |
parent | 1538909ac09a0e84269e36a08da5ae9fce92e8f3 (diff) |
Add a protocol module function for extracting timestamps.
Diffstat (limited to 'include')
-rw-r--r-- | include/protocol.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/protocol.h b/include/protocol.h index aeac6a069..f89df0ab1 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -120,6 +120,9 @@ public: virtual Anope::string UID_Retrieve(); virtual Anope::string SID_Retrieve(); + /** Extracts a timestamp from a string. */ + virtual time_t ExtractTimestamp(const Anope::string &str); + /** Sends an error to the uplink before disconnecting. * @param reason The error message. */ |