diff options
author | June McEnroe <june@causal.agency> | 2020-09-02 17:51:51 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-09-02 17:51:51 -0400 |
commit | e2299312539a5272e77334b321310aa39d12193d (patch) | |
tree | ea0e0e6136f02c8a2ddde696178ba0a6cc6b3f9d /handle.c | |
parent | Preserve style after alignment (diff) | |
download | test-e2299312539a5272e77334b321310aa39d12193d.tar.gz test-e2299312539a5272e77334b321310aa39d12193d.zip |
Don't call completeTouch for ignored messages
Diffstat (limited to '')
-rw-r--r-- | handle.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/handle.c b/handle.c index d822e0e..e5e370e 100644 --- a/handle.c +++ b/handle.c @@ -1129,9 +1129,12 @@ static void handlePrivmsg(struct Message *msg) { bool notice = (msg->cmd[0] == 'N'); bool action = isAction(msg); bool mention = !mine && isMention(msg); - if (!notice && !mine) completeTouch(id, msg->nick, hash(msg->user)); enum Heat heat = ignoreCheck((mention || query ? Hot : Warm), id, msg); + if (!notice && !mine && heat > Ice) { + completeTouch(id, msg->nick, hash(msg->user)); + } if (heat > Ice) urlScan(id, msg->nick, msg->params[1]); + if (notice) { if (id != Network) { logFormat(id, tagTime(msg), "-%s- %s", msg->nick, msg->params[1]); |