about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-12-15 01:09:56 -0500
committerJune McEnroe <june@causal.agency>2018-12-15 01:09:56 -0500
commita2a6ce99c06cb5452d10fd5814a1c9681e935be6 (patch)
treec12b89e572ad922fb8d19a1d838c89f8037d19f6
parentTreat EOF as expected if self.quit (diff)
downloadcatgirl-a2a6ce99c06cb5452d10fd5814a1c9681e935be6.tar.gz
catgirl-a2a6ce99c06cb5452d10fd5814a1c9681e935be6.zip
Underline own nick
-rw-r--r--handle.c5
-rw-r--r--ui.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/handle.c b/handle.c
index dd42452..c1f316f 100644
--- a/handle.c
+++ b/handle.c
@@ -456,8 +456,9 @@ static void handlePrivmsg(char *prefix, char *params) {
 	bool ping = !me && isPing(mesg);
 	uiFmt(
 		tag, (hot ? UIHot : UIWarm),
-		"%c\3%d%c%s%c\17 %s",
-		ping["\17\26"], formatColor(user), me["<("], nick, me[">)"], mesg
+		"%c%c\3%d<%s>%c %s",
+		(me ? IRCUnderline : IRCColor), (ping ? IRCReverse : IRCColor),
+		formatColor(user), nick, IRCReset, mesg
 	);
 	logFmt(tag, NULL, "<%s> %s", nick, mesg);
 }
diff --git a/ui.c b/ui.c
index e437ef9..a4fedf5 100644
--- a/ui.c
+++ b/ui.c
@@ -537,7 +537,7 @@ void uiPrompt(void) {
 		);
 	} else if (!isCommand(ui.view->tag, input)) {
 		len = aswprintf(
-			&prompt, L"\3%d(%s)\3 ",
+			&prompt, L"\3%d<%s>\3 ",
 			formatColor(self.user), self.nick
 		);
 	}