forked from GitHub/dbot
Merge branch 'betterusers' of https://github.com/reality/depressionbot into betterusers
This commit is contained in:
commit
0eb29caf44
@ -32,7 +32,7 @@ var radio = function(dbot) {
|
|||||||
|
|
||||||
stream.on('metadata', function(metadata) {
|
stream.on('metadata', function(metadata) {
|
||||||
var title = icecast.parseMetadata(metadata).StreamTitle;
|
var title = icecast.parseMetadata(metadata).StreamTitle;
|
||||||
if(title != 'undefined') { // sowwy jesus
|
if(!_.isUndefined(title)) { // sowwy jesus
|
||||||
_.each(this.config.announce, function(a) {
|
_.each(this.config.announce, function(a) {
|
||||||
dbot.say(a.server, a.name, dbot.t('now_playing', {
|
dbot.say(a.server, a.name, dbot.t('now_playing', {
|
||||||
'name': this.data['icy-name'],
|
'name': this.data['icy-name'],
|
||||||
|
Loading…
Reference in New Issue
Block a user