From 3356d6d181c7d7016aa4d12a7e02057b56e5e9dd Mon Sep 17 00:00:00 2001 From: jake Date: Sat, 31 Aug 2024 22:07:42 -0400 Subject: [PATCH] convert > and < to > and < for owncast --- myapp.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/myapp.pl b/myapp.pl index 1b08c53..8d4075f 100755 --- a/myapp.pl +++ b/myapp.pl @@ -19,7 +19,7 @@ use Mojo::JSON qw(decode_json); use Mojo::UserAgent; use Mojo::IRC; use Carp qw(croak); -use Smart::Comments; +#use Smart::Comments; use MIME::Base64 qw(encode_base64); ## no critic (prototype) @@ -117,6 +117,9 @@ $irc->on(irc_privmsg => sub ($self, $message) { $message->{params}[1] =~ s|\x03\d?\d||g; # colors $message->{params}[1] =~ s|\x03||g; # bare color code ???? + $message->{params}[1] =~ s|>|>|g; + $message->{params}[1] =~ s|<|<|g; + send_chat_to_owncast($message->{params}[1], $name[0]); } });