mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
Merge branch 'master' of https://github.com/reality/dbot
This commit is contained in:
commit
eab1004215
@ -10,6 +10,12 @@ var api = function(dbot) {
|
|||||||
_.each(message.match(/(#\w+)/g), function(match) {
|
_.each(message.match(/(#\w+)/g), function(match) {
|
||||||
tags.push(match.toLowerCase());
|
tags.push(match.toLowerCase());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(_.has(this.config.full_redirs, cName)) {
|
||||||
|
message = '(redirect from ' + cName + ') ' + message;
|
||||||
|
cName = this.config.full_redirs[cName];
|
||||||
|
}
|
||||||
|
|
||||||
this.db.save('notifies', id, {
|
this.db.save('notifies', id, {
|
||||||
'id': id,
|
'id': id,
|
||||||
'server': server,
|
'server': server,
|
||||||
|
@ -20,8 +20,11 @@
|
|||||||
"chan_redirs": {
|
"chan_redirs": {
|
||||||
"#chan": "#chan-notify"
|
"#chan": "#chan-notify"
|
||||||
},
|
},
|
||||||
"host_lookup": [
|
"full_redirs": {
|
||||||
|
"#chan": "#chan-fullnotify"
|
||||||
|
},
|
||||||
|
"host_lookup": {
|
||||||
"#chan"
|
"#chan"
|
||||||
],
|
},
|
||||||
"noMissingChans": []
|
"noMissingChans": []
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user