From 67b3b2fb8756807f735ba72090f3b68333930c13 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Sun, 29 Nov 2026 07:12:19 +0100 Subject: [PATCH] Remove the topic label from channel headers --- README.md | 2 +- irc9.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1cd76a5..ca13366 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ Build yours by copying `irc9rc-example` to `irc9rc` next to the binary (or to ``` [irc9] irc.example / #general /----------------------\---------------------------------------- -|*irc.example | Topic: General discussion +|*irc.example | General discussion | |---------------------------------------- | |-#general | | |-#help(3) | diff --git a/irc9.c b/irc9.c index e3a0389..191f25f 100644 --- a/irc9.c +++ b/irc9.c @@ -2569,9 +2569,7 @@ static int layout_topic(int draw) if (!curwin || curwin->type != W_CHANNEL || mainh < 1 || width < 1) return 0; - char topic[MAXLINE + sizeof "Topic: "]; - snprintf(topic, sizeof topic, "Topic: %s", - curwin->topic[0] ? curwin->topic : "(no topic)"); + const char *topic = curwin->topic[0] ? curwin->topic : "(no topic)"; char *rows[MAXWRAPROWS]; int count = 0; push_wrapped(rows, &count, MAXWRAPROWS, topic, width);