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 /src | |
parent | d05695e5cbc1d2843bf1603e71fc2003117deb3a (diff) |
Allow modules to prevent a message from updating the idle time.
Diffstat (limited to 'src')
-rw-r--r-- | src/coremods/core_message.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_ircv3_ctctags.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/coremods/core_message.cpp b/src/coremods/core_message.cpp index 648172b57..1093aad67 100644 --- a/src/coremods/core_message.cpp +++ b/src/coremods/core_message.cpp @@ -128,7 +128,7 @@ namespace { // If the source is local and was not sending a CTCP reply then update their idle time. LocalUser* lsource = IS_LOCAL(source); - if (lsource && (msgdetails.type != MSG_NOTICE || !msgdetails.IsCTCP())) + if (lsource && msgdetails.update_idle && (msgdetails.type != MSG_NOTICE || !msgdetails.IsCTCP())) lsource->idle_lastmsg = ServerInstance->Time(); // Inform modules that a message was sent. diff --git a/src/modules/m_ircv3_ctctags.cpp b/src/modules/m_ircv3_ctctags.cpp index 421bf89c3..1bb803bc2 100644 --- a/src/modules/m_ircv3_ctctags.cpp +++ b/src/modules/m_ircv3_ctctags.cpp @@ -57,7 +57,7 @@ class CommandTagMsg : public Command { // If the source is local then update its idle time. LocalUser* lsource = IS_LOCAL(source); - if (lsource) + if (lsource && msgdetails.update_idle) lsource->idle_lastmsg = ServerInstance->Time(); // Inform modules that a TAGMSG was sent. |