ACTION from IRC turns into /me for owncast
This commit is contained in:
parent
2f1e2c0362
commit
3e1a5c2a07
2 changed files with 3 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
start.bash
|
start.bash
|
||||||
start.sh
|
start.sh
|
||||||
|
admin.txt
|
||||||
|
|
2
myapp.pl
2
myapp.pl
|
@ -80,6 +80,8 @@ $irc->on(irc_privmsg => sub ($self, $message) {
|
||||||
if ($message->{params}[0] eq $ENV{ IRC_CHANNEL }) {
|
if ($message->{params}[0] eq $ENV{ IRC_CHANNEL }) {
|
||||||
my @name = split '!', $message->{prefix};
|
my @name = split '!', $message->{prefix};
|
||||||
#say $name[0] . " said: " . $message->{params}[1];
|
#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]);
|
send_chat_to_owncast($message->{params}[1], $name[0]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue