X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/892385e632dee65c9eac60ba3a358e9e95d4a193..ecb3811b1ae00eb71bb1f27acbd2c6de651dc6ab:/include/stg_message.h diff --git a/include/stg_message.h b/include/stg_message.h index 558100dd..16fe566f 100644 --- a/include/stg_message.h +++ b/include/stg_message.h @@ -43,6 +43,11 @@ struct STG_MSG { STG_MSG() {}; +time_t GetNextSendTime() const +{ +return header.lastSendTime + header.repeat * 60; +}; + STG_MSG_HDR header; std::string text; };