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/message.h | |
parent | d05695e5cbc1d2843bf1603e71fc2003117deb3a (diff) |
Allow modules to prevent a message from updating the idle time.
Diffstat (limited to 'include/message.h')
-rw-r--r-- | include/message.h | 4 |
1 files changed, 4 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) |