~chee/partyfingerd

9da59c6c5e5f7b9f212c5cd06fcde2070a36d338 — chee 12 days ago ce4c469
stop writing before and after messsage
1 files changed, 2 insertions(+), 3 deletions(-)

M fingerd.ts
M fingerd.ts => fingerd.ts +2 -3
@@ 28,15 28,14 @@ for await (const conn of listener) {
			.replace(/\0.*/g,'')
			.trim()
		const stdout = await getLatestPost(user)
		// i don't know a better way of throwing everything away

		await conn.write(welcome)
		//await conn.write(welcome)
		if (stdout) {
			await copy(stdout, conn)
		} else {
			await conn.write(heart)
		}
		await conn.write(goodbye)
		//await conn.write(goodbye)
	} finally {
		conn.close()
	}