]> git.stg.codes - stg.git/blobdiff - include/stg_message.h
Невеличкий рефакторинг роботи з повідомленнями
[stg.git] / include / stg_message.h
index 558100dd555e24356156010042f8717577e90669..16fe566f662ef8b833c2df13d5a54132f29fc5e8 100644 (file)
@@ -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;
 };