mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 11:42:36 +01:00
chan_redirs in report [close #591]
This commit is contained in:
parent
56616d6bdf
commit
110f23ca2f
@ -17,5 +17,8 @@
|
||||
"type": ""
|
||||
}
|
||||
},
|
||||
"chan_redirs": {
|
||||
"#chan": "#chan-notify"
|
||||
},
|
||||
"noMissingChans": []
|
||||
}
|
||||
|
@ -101,6 +101,9 @@ var report = function(dbot) {
|
||||
message = this.internalAPI.formatNotify(type, server,
|
||||
user, cName, message);
|
||||
this.internalAPI.notify(server, _.pluck(ops, 'name'), message);
|
||||
if(_.has(this.config.chan_redirs, cName)) {
|
||||
dbot.say(server, this.config.chan_redirs[cName], message);
|
||||
}
|
||||
}.bind(this));
|
||||
}
|
||||
}.bind(this));
|
||||
|
Loading…
Reference in New Issue
Block a user