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>2022-01-27 14:56:28 -0500
commit05e61af800691a6700ad3517bd5e6b3e666ca1c4 (patch)
tree5bb21f6468cc9b2cccd91e79fce6f7575deac82f
parenthandle.c: o pona e toki pi pali toki /setname (diff)
downloadcatgirl-05e61af800691a6700ad3517bd5e6b3e666ca1c4.tar.gz
catgirl-05e61af800691a6700ad3517bd5e6b3e666ca1c4.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...]
Diffstat (limited to '')
-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;