summary refs log tree commit diff
path: root/handle.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-09-02 17:51:51 -0400
committerJune McEnroe <june@causal.agency>2020-09-02 17:51:51 -0400
commite2299312539a5272e77334b321310aa39d12193d (patch)
treeea0e0e6136f02c8a2ddde696178ba0a6cc6b3f9d /handle.c
parentPreserve style after alignment (diff)
downloadcatgirl-e2299312539a5272e77334b321310aa39d12193d.tar.gz
catgirl-e2299312539a5272e77334b321310aa39d12193d.zip
Don't call completeTouch for ignored messages
Diffstat (limited to '')
-rw-r--r--handle.c5
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]);
t'>Add This Is How You Lose the Time WarJune McEnroe 2020-02-22Add See Ya LaterJune McEnroe 2020-02-20Remove wiki scriptJune McEnroe Wikipedia seems to have removed the one-sentence extracts from the opensearch results. Too bad. It's not a wiki script, what we need is a command that fetches single-sentence summaries of articles on Wikipedia. 2020-02-19Add The Obelisk GateJune McEnroe 2020-02-17Add Four Tet — HandsJune McEnroe One from the cafe that caught my attention. 2020-02-12Simplify macOS notify-sendJune McEnroe 2020-02-12Add imbox and notemap to pageJune McEnroe 2020-02-12Collapse simple linksJune McEnroe 2020-02-12Move catgirl up the pageJune McEnroe 2020-02-12Update catgirl pty grabJune McEnroe 2020-02-12Link to cgit /about pages where appropriateJune McEnroe 2020-02-11Separate LINKS from BINS for html to workJune McEnroe 2020-02-11Add margin to Bl-bullet itemsJune McEnroe 2020-02-10Match URLs inside parens or with paired parens insideJune McEnroe 2020-02-10Duplicate effective URL before passing it back to curlJune McEnroe Apparently sometimes it didn't like receiving its own internal storage to parse again. Understandable. 2020-02-09Add To Be Taught, If FortunateJune McEnroe 2020-02-04Add The Future of Another TimelineJune McEnroe Wow. One of the best I've read. 2020-01-31Reorganize the Makefile for the umpteenth timeJune McEnroe Broke out LDLIBS for each bin, and made everything more uniform. 2020-01-28Change scout sensitivity to 1.4June McEnroe idk it seems to work. 2020-01-28Import shows.txtJune McEnroe