git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add MessageTimeout parameter and description to the config file
[stg.git]
/
include
/
stg_message.h
diff --git
a/include/stg_message.h
b/include/stg_message.h
index 558100dd555e24356156010042f8717577e90669..16fe566f662ef8b833c2df13d5a54132f29fc5e8 100644
(file)
--- a/
include/stg_message.h
+++ b/
include/stg_message.h
@@
-43,6
+43,11
@@
struct STG_MSG
{
STG_MSG() {};
{
STG_MSG() {};
+time_t GetNextSendTime() const
+{
+return header.lastSendTime + header.repeat * 60;
+};
+
STG_MSG_HDR header;
std::string text;
};
STG_MSG_HDR header;
std::string text;
};