From 9a0046a709e1fe9236d54838e2de530813972400 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 24 Feb 2020 02:10:36 +0000 Subject: Allow modules to prevent a message from updating the idle time. --- include/message.h | 4 ++++ include/modules/ctctags.h | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'include') 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) { } -- cgit v1.2.3