From cc80fae758c392807dc0cea6ab2e7f78804b6712 Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Tue, 11 Feb 2020 17:52:55 -0500 Subject: 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. --- ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui.c') 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 = "> "; -- cgit 1.4.1-2-gfad0