diff options
author | Sadie Powell <sadie@witchery.services> | 2020-02-24 02:10:36 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-03-05 20:47:18 +0000 |
commit | 9a0046a709e1fe9236d54838e2de530813972400 (patch) | |
tree | 7c5dafcf2f0c149f222f7eb02e458e34dbdec6ce /include | |
parent | d05695e5cbc1d2843bf1603e71fc2003117deb3a (diff) |
Allow modules to prevent a message from updating the idle time.
Diffstat (limited to 'include')
-rw-r--r-- | include/message.h | 4 | ||||
-rw-r--r-- | include/modules/ctctags.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/message.h b/include/message.h index 3a7c7018e..eae27ff94 100644 --- a/include/message.h +++ b/include/message.h @@ -39,6 +39,9 @@ class CoreExport MessageDetails /* Whether to send the original message back to clients with echo-message support. */ bool echo_original; + /** Whether to update the source user's idle time. */ + bool update_idle; + /** The users who are exempted from receiving this message. */ CUList exemptions; @@ -78,6 +81,7 @@ class CoreExport MessageDetails MessageDetails(MessageType mt, const std::string& msg, const ClientProtocol::TagMap& tags) : echo(true) , echo_original(false) + , update_idle(true) , original_text(msg) , tags_in(tags) , text(msg) diff --git a/include/modules/ctctags.h b/include/modules/ctctags.h index f1af43c09..ad45d12b1 100644 --- a/include/modules/ctctags.h +++ b/include/modules/ctctags.h @@ -85,6 +85,9 @@ class CTCTags::TagMessageDetails /* Whether to send the original tags back to clients with echo-message support. */ bool echo_original; + /** Whether to update the source user's idle time. */ + bool update_idle; + /** The users who are exempted from receiving this message. */ CUList exemptions; @@ -97,6 +100,7 @@ class CTCTags::TagMessageDetails TagMessageDetails(const ClientProtocol::TagMap& tags) : echo(true) , echo_original(false) + , update_idle(true) , tags_in(tags) { } |