about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKylie McClain <kylie@somas.is>2022-01-24 02:22:18 -0500
committerKylie McClain <kylie@somas.is>2022-01-27 15:01:49 -0500
commit1e659ddd2ce7690444b9cab5f745d9004c62c6c6 (patch)
tree7c75692b8d48d37b200f1fcd363487aebed58a56
parenthandle.c: o pona e toki tan toki ilo "/setname" (diff)
downloadcatgirl-1e659ddd2ce7690444b9cab5f745d9004c62c6c6.tar.gz
catgirl-1e659ddd2ce7690444b9cab5f745d9004c62c6c6.zip
toki tan ilo > toki ilo /whois: o pona e toki
- o pona e kepeken pi nimi lon
- o pona e kepeken pi nimi linja
- o pana e nimi pi toki pona tawa nimi tenpo
-rw-r--r--handle.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/handle.c b/handle.c
index ed053b2..c511912 100644
--- a/handle.c
+++ b/handle.c
@@ -1036,7 +1036,7 @@ static void handleReplyWhoisUser(struct Message *msg) {
 	completeTouch(Network, msg->params[1], hash(msg->params[2]));
 	uiFormat(
 		Network, Warm, tagTime(msg),
-		"jan \3%02d%s\3\tli lon jan %s!%s@%s (%s\17)",
+		"jan \3%02d%s\3\tli jan %s!%s@%s (%s\17)",
 		hash(msg->params[2]), msg->params[1],
 		msg->params[1], msg->params[2], msg->params[3], msg->params[5]
 	);
@@ -1047,22 +1047,22 @@ static void handleReplyWhoisServer(struct Message *msg) {
 	require(msg, false, 4);
 	uiFormat(
 		Network, Warm, tagTime(msg),
-		"jan \3%02d%s\3\tli %s linja e kulupu %s (%s)",
+		"jan \3%02d%s\3\tli linja %s tawa kulupu %s (%s)",
 		completeColor(Network, msg->params[1]), msg->params[1],
-		(replies[ReplyWhowas] ? "lon ala" : "lon"), msg->params[2], msg->params[3]
+		(replies[ReplyWhowas] ? "ala" : ""), msg->params[2], msg->params[3]
 	);
 }
 
 static void handleReplyWhoisIdle(struct Message *msg) {
 	require(msg, false, 3);
 	unsigned long idle = strtoul(msg->params[2], NULL, 10);
-	const char *unit = "second";
+	const char *unit = "ilo lili";
 	if (idle / 60) {
-		idle /= 60; unit = "minute";
+		idle /= 60; unit = "ilo";
 		if (idle / 60) {
-			idle /= 60; unit = "hour";
+			idle /= 60; unit = "ilo suli";
 			if (idle / 24) {
-				idle /= 24; unit = "day";
+				idle /= 24; unit = "suno";
 			}
 		}
 	}
@@ -1071,9 +1071,9 @@ static void handleReplyWhoisIdle(struct Message *msg) {
 	strftime(signon, sizeof(signon), "%F %T", localtime(&time));
 	uiFormat(
 		Network, Warm, tagTime(msg),
-		"jan \3%02d%s\3\tli weka la ni li awen tenpo %lu %s%s%s%s",
+		"jan \3%02d%s\3\tli awen lape lon tenpo %s %lu%s%s",
 		completeColor(Network, msg->params[1]), msg->params[1],
-		idle, unit, (idle != 1 ? "s" : ""),
+		unit, idle,
 		(msg->params[3] ? ", tan tenpo " : ""), (msg->params[3] ? signon : "")
 	);
 }