mirror of
https://github.com/brmlab/brmdoor.git
synced 2025-06-08 11:44:01 +02:00
brmd: Update stream status in topic too
This commit is contained in:
parent
c39919490f
commit
ed59bdf9f4
1 changed files with 5 additions and 0 deletions
|
@ -109,6 +109,11 @@ sub topic_update {
|
|||
} else {
|
||||
$newtopic =~ s/BRMLAB OPEN/BRMLAB CLOSED/g;
|
||||
}
|
||||
if ($record) {
|
||||
$newtopic =~ s#OFF AIR#ON AIR (http://nat.brmlab.cz:8090/brmstream.asf)#g;
|
||||
} else {
|
||||
$newtopic =~ s#ON AIR.*? \|#OFF AIR |#g;
|
||||
}
|
||||
if ($newtopic ne $topic) {
|
||||
$topic = $newtopic;
|
||||
$irc->yield (topic => $channel => $topic );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue