[PATCH] Print channel topics on startup even when -q/quiet is given

[PATCH] Print channel topics on startup even when -q/quiet is given

From: Klemens Nanni
`catgirl -q -j#foo ...' does not print #foo's topic, later '/join #bar'
with `-q/quiet' given however does print topics upon joining channels;

Silencing nicks in quiet mode seems sensible, the topic however seems
more important and printing it on startup would only be consistent with
manual `join' usage.
---
 handle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/handle.c b/handle.c
index a8f054c..1cab757 100644
--- a/handle.c
+++ b/handle.c
@@ -622,7 +622,7 @@ static void handleReplyTopic(struct Message *msg) {
 	if (!replies[ReplyTopic] && !replies[ReplyTopicAuto]) return;
 	urlScan(id, NULL, msg->params[2]);
 	uiFormat(
-		id, (replies[ReplyTopicAuto] ? Cold : Warm), tagTime(msg),
+		id, Warm, tagTime(msg),
 		"The sign in \3%02d%s\3 reads: %s",
 		hash(msg->params[1]), msg->params[1], msg->params[2]
 	);
-- 
2.32.0

Re: [PATCH] Print channel topics on startup even when -q/quiet is given

From: june
> On Jul 27, 2021, at 14:10, Klemens Nanni <klemens@posteo.de> wrote:
> 
> `catgirl -q -j#foo ...' does not print #foo's topic, later '/join #bar'
> with `-q/quiet' given however does print topics upon joining channels;
> 
> Silencing nicks in quiet mode seems sensible, the topic however seems
> more important and printing it on startup would only be consistent with
> manual `join' usage.

I think this needs to remain how it is to avoid marking every channel
unread. It seems fine to me anyway that topics are shown for manual
/join and not automatic ones, since if a channel is in -j you’ve
most likely seen its topic before. (And no one reads them anyway,
right?)