brmd: Update stream status in topic too

This commit is contained in:
Petr Baudis 2011-05-03 20:27:54 +02:00
parent c39919490f
commit ed59bdf9f4

View file

@ -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 );