about summary refs log tree commit diff
path: root/web/panettone
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-11-22T19·13-0500
committerglittershark <grfn@gws.fyi>2020-11-22T21·59+0000
commit58efa6df5bbecd4b0a2e0081a092b0f0f2425113 (patch)
tree400d82e13c615b49266b9da76eb6d8d7f39bd015 /web/panettone
parent92a1f72f410c8ac46d3c4f9913a8b2d4316f7914 (diff)
fix(panettone): Prefix all IRC messages with a ZWSP r/1904
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>
Diffstat (limited to 'web/panettone')
-rw-r--r--web/panettone/src/irc.lisp5
1 files changed, 4 insertions, 1 deletions
diff --git a/web/panettone/src/irc.lisp b/web/panettone/src/irc.lisp
index c94b0d2f4b..f116e2a706 100644
--- a/web/panettone/src/irc.lisp
+++ b/web/panettone/src/irc.lisp
@@ -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)))))))