ACTION from IRC turns into /me for owncast

This commit is contained in:
jake 2024-08-31 21:14:27 -04:00
parent 2f1e2c0362
commit 3e1a5c2a07
2 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
start.bash
start.sh
admin.txt

View file

@ -80,6 +80,8 @@ $irc->on(irc_privmsg => sub ($self, $message) {
if ($message->{params}[0] eq $ENV{ IRC_CHANNEL }) {
my @name = split '!', $message->{prefix};
#say $name[0] . " said: " . $message->{params}[1];
# ACTION in owncast chat is ugly
$message->{params}[1] =~ s|^\x01ACTION|/me|; # ty for the \x01 hint, Irish
send_chat_to_owncast($message->{params}[1], $name[0]);
}
});