summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--handle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/handle.c b/handle.c
index 4ec0a90..b4601e4 100644
--- a/handle.c
+++ b/handle.c
@@ -292,7 +292,6 @@ static void handleQuit(struct Message *msg) {
 
 static void handleReplyNames(struct Message *msg) {
 	require(msg, false, 4);
-	if (!replies.names) return;
 	size_t id = idFor(msg->params[2]);
 	char buf[1024];
 	size_t len = 0;
@@ -303,6 +302,7 @@ static void handleReplyNames(struct Message *msg) {
 		char *user = strsep(&name, "@");
 		enum Color color = (user ? hash(user) : Default);
 		completeAdd(id, nick, color);
+		if (!replies.names) continue;
 		int n = snprintf(
 			&buf[len], sizeof(buf) - len,
 			"%s\3%02d%s\3", (len ? ", " : ""), color, nick
@@ -310,6 +310,7 @@ static void handleReplyNames(struct Message *msg) {
 		assert(n > 0 && len + n < sizeof(buf));
 		len += n;
 	}
+	if (!replies.names) return;
 	uiFormat(
 		id, Cold, tagTime(msg),
 		"In \3%02d%s\3 are %s",
June McEnroe 2021-01-27Change default timestamp format to %XJune McEnroe 2021-01-27Add toggleable display of timestampsJune McEnroe 2021-01-26Only list up until scroll position with M-lJune McEnroe 2021-01-26Preserve scroll position across reflowsJune McEnroe 2021-01-26Add numbers to buffer linesJune McEnroe 2021-01-26Rename and move scroll functions closer to where they are usedJune McEnroe 2021-01-26Factor out windowReflowJune McEnroe 2021-01-26Use Warm heat for replies to user-initiated commandsJune McEnroe 2021-01-26Clarify configuration path interpretationsJune McEnroe 2021-01-26Tighten up XDG base directory path handlingJune McEnroe 2021-01-26Expand the opening paragraph of the manualJune McEnroe 2021-01-25Disable notify in restricted modeJune McEnroe 2021-01-25Don't print timestamps for blank lines in bufferListJune McEnroe 2021-01-25Do not copy time to wrapped linesJune McEnroe 2021-01-25Add protocol coverage to non-features listJune McEnroe 2021-01-25Move mention of pledge(2) and unveil(2) to READMEJune McEnroe 2021-01-23Preserve order of filters when removingJune McEnroe 2021-01-23Fix /unignore commandJune McEnroe 2021-01-23Remove use of "%n" to appease de RaadtJune McEnroe 2021-01-23Drop filesystem access iff possibleKlemens Nanni 2021-01-23Drop exec capability iff restrictedKlemens Nanni 2021-01-23Drop network capability after ircConnect()Klemens Nanni 2021-01-23Call pledge(2) after unveil(2)Klemens Nanni 2021-01-23Separate kiosk mode from restrict modeJune McEnroe 2021-01-21Simplify windowUpdate loops and factor out windowTopJune McEnroe 2021-01-21Document that M-l shows timestampsJune McEnroe 2021-01-19Don't lose swapped window when navigating to current bufferJeremy O'Brien 2021-01-19Use Warm heat for manually inserted blank linesJune McEnroe 2021-01-18Add example tmux(1) configKlemens Nanni 2021-01-17Use Warm heat for blank linesJune McEnroe 2021-01-16Add -I highlight option and /highlightJune McEnroe