summary refs log tree commit diff
path: root/ui.c
diff options
context:
space:
mode:
authorC. McEnroe2020-02-11 17:52:55 -0500
committerC. McEnroe2020-02-11 17:52:55 -0500
commitcc80fae758c392807dc0cea6ab2e7f78804b6712 (patch)
treefb286e04d037c3ffdee5703de8dd19c33ef87eba /ui.c
parent277186329921ba34630b7a2492e1792133a02c67 (diff)
Set self.nick to * initially
Allows removing a bunch of checks that self.nick is set, and it's what
the server usually calls you before registration.

Never highlight notices as mentions.
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.c b/ui.c
index 83373d9..cb4115b 100644
--- a/ui.c
+++ b/ui.c
@@ -657,7 +657,7 @@ static void inputUpdate(void) {
 	struct Style init = { .fg = self.color, .bg = Default };
 	struct Style rest = Reset;
 	const char *prefix = "";
-	const char *prompt = (self.nick ? self.nick : "");
+	const char *prompt = self.nick;
 	const char *suffix = "";
 	if (NULL != (skip = commandIsPrivmsg(id, buf))) {
 		prefix = "<"; suffix = "> ";