summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-06-26 16:38:19 -0400
committerJune McEnroe <june@causal.agency>2022-06-26 16:38:19 -0400
commit4aaa2050e294d38c35ea0b5f5740541cebb9cfbd (patch)
treef2ad3d79d0f02aff1438d82211f0d14da22956d4
parentUse two lines to show topic diffs (diff)
downloadcatgirl-4aaa2050e294d38c35ea0b5f5740541cebb9cfbd.tar.gz
catgirl-4aaa2050e294d38c35ea0b5f5740541cebb9cfbd.zip
Only show old topic if something was removed
-rw-r--r--handle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/handle.c b/handle.c
index 809b6bc..4b667c7 100644
--- a/handle.c
+++ b/handle.c
@@ -744,7 +744,7 @@ static void handleTopic(struct Message *msg) {
 		hash(msg->user), msg->nick, hash(msg->params[0]), msg->params[0]
 	);
 	ptr = highlightMiddle(ptr, end, Brown, old, pre, osuf);
-	uiWrite(id, Cold, tagTime(msg), buf);
+	if (osuf != pre) uiWrite(id, Cold, tagTime(msg), buf);
 	ptr = buf;
 	ptr = seprintf(
 		ptr, end, "\3%02d%s\3\tplaces a new sign in \3%02d%s\3: ",