fix(panettone): Prefix all IRC messages with a ZWSP

Prefix all IRC notifications from panettone with a unicode
zero-width-space so that they don't get picked up by other IRC
bots (notably bslsk05).

Change-Id: I350fd1b6d2145e496c22a8f56ba3530fc9f1a978
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2127
Tested-by: BuildkiteCI
Reviewed-by: lukegb <lukegb@tvl.fyi>
Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
Griffin Smith 2020-11-22 14:13:22 -05:00 committed by glittershark
parent 92a1f72f41
commit 58efa6df5b

View file

@ -21,6 +21,9 @@ May signal a condition if sending fails."
(let ((socket (socket-connect irchost ircport)))
(unwind-protect
(progn
(format (socket-stream socket) "~@[~A ~]~A~%" channel body)
(format (socket-stream socket) "~@[~A ~]~A~A~%"
channel
#\ZERO_WIDTH_SPACE
body)
(finish-output (socket-stream socket)))
(ignore-errors (socket-close socket)))))))