about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKylie McClain <kylie@somas.is>2022-04-19 13:43:28 -0400
committerKylie McClain <kylie@somas.is>2022-04-19 13:43:28 -0400
commit9ec43ab6b97445bd291e84af543ce1feea9a6bcd (patch)
tree465e839c7f2134a03b2612c25f57fc3102ff8eed
parenthandle.c: o pana e toki lon pana/weka kule lon pona/ike (diff)
downloadcatgirl-9ec43ab6b97445bd291e84af543ce1feea9a6bcd.tar.gz
catgirl-9ec43ab6b97445bd291e84af543ce1feea9a6bcd.zip
Revert "handle.c: o pana e toki lon pana/weka kule lon pona/ike" somasis/tokipona
This reverts commit 445e06dcb0acd32cae6b1ca98db917cd2e6fba53.

ona li pakala e ilo
-rw-r--r--handle.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/handle.c b/handle.c
index aef9038..a7cdcb7 100644
--- a/handle.c
+++ b/handle.c
@@ -821,8 +821,7 @@ static void handleMode(struct Message *msg) {
 		if (*ch == '+') { set = true; continue; }
 		if (*ch == '-') { set = false; continue; }
 
-		const char *verb = (set ? "pana" : "weka");
-		const char *verb_direction = (set ? "tawa" : "tan");
+		const char *verb = (set ? "sets" : "unsets");
 		const char *name = ChanModes[(byte)*ch];
 		if (*ch == network.excepts) name = "awen";
 		if (*ch == network.invex) name = "wile";
@@ -841,12 +840,10 @@ static void handleMode(struct Message *msg) {
 			];
 			uiFormat(
 				id, Cold, tagTime(msg),
-				"jan \3%02d%s\3\tli %s e kule %s%s %s jan \3%02d%c%s\3 %s%s lon tomo \3%02d%s\3",
+				"FIXME \3%02d%s\3\t%s \3%02d%c%s\3 %s%s in \3%02d%s\3",
 				hash(msg->user), msg->nick, verb,
-				mode, name,
-				verb_direction,
 				completeColor(id, nick), prefix, nick,
-				hash(msg->params[0]), msg->params[0]
+				mode, name, hash(msg->params[0]), msg->params[0]
 			);
 			logFormat(
 				id, tagTime(msg), "%s %s %c%s %s%s in %s",
@@ -860,10 +857,10 @@ static void handleMode(struct Message *msg) {
 			}
 			char *mask = msg->params[i++];
 			if (*ch == 'b') {
-				verb = (set ? "weka" : "weka ala");
+				verb = (set ? "bans" : "unbans");
 				uiFormat(
 					id, Cold, tagTime(msg),
-					"jan \3%02d%s\3\tli %s (%c%c) e linja %s lon tomo \3%02d%s\3",
+					"FIXME \3%02d%s\3\t%s %c%c %s from \3%02d%s\3",
 					hash(msg->user), msg->nick, verb, set["-+"], *ch, mask,
 					hash(msg->params[0]), msg->params[0]
 				);
@@ -872,13 +869,13 @@ static void handleMode(struct Message *msg) {
 					msg->nick, verb, set["-+"], *ch, mask, msg->params[0]
 				);
 			} else {
-				verb = (set ? "pana" : "weka");
-				const char *to = (set ? "tawa" : "tan");
+				verb = (set ? "adds" : "removes");
+				const char *to = (set ? "to" : "from");
 				uiFormat(
 					id, Cold, tagTime(msg),
-					"jan \3%02d%s\3\tli %s e linja %s %s lipu %s%s pi tomo \3%02d%s\3",
+					"FIXME \3%02d%s\3\t%s %s %s the \3%02d%s\3 %s%s list",
 					hash(msg->user), msg->nick, verb, mask, to,
-					mode, name, hash(msg->params[0]), msg->params[0]
+					hash(msg->params[0]), msg->params[0], mode, name
 				);
 				logFormat(
 					id, tagTime(msg), "%s %s %s %s the %s %s%s list",