From 1e659ddd2ce7690444b9cab5f745d9004c62c6c6 Mon Sep 17 00:00:00 2001 From: Kylie McClain Date: Mon, 24 Jan 2022 02:22:18 -0500 Subject: 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 --- handle.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'handle.c') 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 : "") ); } -- cgit 1.4.1