about summary refs log tree commit diff
path: root/handle.c
diff options
context:
space:
mode:
authorKylie McClain <kylie@somas.is>2022-01-27 14:59:34 -0500
committerKylie McClain <kylie@somas.is>2022-01-27 14:59:34 -0500
commite813804055dc6fbfd8e5f74c2c3161fd0dd6d302 (patch)
tree872b6f8e607ab4dc582a5f5ef5e42b2c98cc6c79 /handle.c
parenthandle.c: o pona e kepeken pi nimi "e" (diff)
parentAvoid sending null byte in SASL PLAIN (diff)
downloadcatgirl-e813804055dc6fbfd8e5f74c2c3161fd0dd6d302.tar.gz
catgirl-e813804055dc6fbfd8e5f74c2c3161fd0dd6d302.zip
Merge branch 'master' of git.causal.agency:pub/catgirl into somasis/tokipona
Diffstat (limited to 'handle.c')
-rw-r--r--handle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/handle.c b/handle.c
index 68bc344..54f2436 100644
--- a/handle.c
+++ b/handle.c
@@ -219,7 +219,7 @@ static void handleAuthenticate(struct Message *msg) {
 	char b64[BASE64_SIZE(sizeof(buf))];
 	base64(b64, buf, len);
 	ircFormat("AUTHENTICATE ");
-	ircSend(b64, BASE64_SIZE(len));
+	ircSend(b64, BASE64_SIZE(len) - 1);
 	ircFormat("\r\n");
 
 	explicit_bzero(b64, sizeof(b64));
@@ -1148,6 +1148,7 @@ static void handleReplyAway(struct Message *msg) {
 		id = idFor(msg->params[1]);
 	}
 	uiFormat(
+		id, (id == Network ? Warm : Cold), tagTime(msg),
 		id, Warm, tagTime(msg),
 		"jan \3%02d%s\3\tli weka tan ni: %s",
 		completeColor(id, msg->params[1]), msg->params[1], msg->params[2]