about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKylie McClain <kylie@somas.is>2021-11-26 00:09:31 -0500
committerKylie McClain <kylie@somas.is>2021-12-21 15:11:57 -0500
commit38a3b11ad54a95a4a3899433d93f2c2c3bc5ad24 (patch)
tree506b3288a26cb2cd7a080eb9b56c3eaaa54c86a4
parenthandle.c: o pona e toki pi pali toki /setname (diff)
downloadcatgirl-38a3b11ad54a95a4a3899433d93f2c2c3bc5ad24.tar.gz
catgirl-38a3b11ad54a95a4a3899433d93f2c2c3bc5ad24.zip
o pana e nimi 'jan' tawa toki pali
toki ni li jo ala e nimi 'jan', la ona li pakala e nasin toki pi toki
pona. ike la, toki sin ni li sama ala lukin toki pi wile toki.
sina wile pona e ni la, sina ante mute e kon inputUpdate...

[if these words [action messages] do not have the word jan, they break
toki pona's system of speaking [grammar]. unfortunately, this new
message does not have the same look as the message in the prompt.
if you want to improve this, you have to greatly change the inputUpdate
code...]
-rw-r--r--handle.c3
-rw-r--r--ui.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/handle.c b/handle.c
index b5cba26..0694764 100644
--- a/handle.c
+++ b/handle.c
@@ -1274,7 +1274,8 @@ static void handlePrivmsg(struct Message *msg) {
 		colorMentions(buf, sizeof(buf), id, msg);
 		uiFormat(
 			id, heat, tagTime(msg),
-			"%s\35\3%d* jan %s\17\35\t%s%s",
+			"%s\35\3%d*\17\35 jan %s\3%d%s\17\35\t%s%s",
+			(highlight ? "\26" : ""), hash(msg->user),
 			(highlight ? "\26" : ""), hash(msg->user), msg->nick,
 			buf, msg->params[1]
 		);
diff --git a/ui.c b/ui.c
index 2789bd7..5282407 100644
--- a/ui.c
+++ b/ui.c
@@ -770,7 +770,7 @@ static void inputUpdate(void) {
 		styleInput.fg = LightGray;
 		skip = notice;
 	} else if (action) {
-		prefix = "* "; suffix = " ";
+		prefix = "* jan "; suffix = " ";
 		stylePrompt.attr |= Italic;
 		styleInput.attr |= Italic;
 		skip = action;