This commit is contained in:
Luke Slater 2015-01-29 21:42:18 +00:00
commit eab1004215
2 changed files with 11 additions and 2 deletions

View File

@ -10,6 +10,12 @@ var api = function(dbot) {
_.each(message.match(/(#\w+)/g), function(match) {
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, {
'id': id,
'server': server,

View File

@ -20,8 +20,11 @@
"chan_redirs": {
"#chan": "#chan-notify"
},
"host_lookup": [
"full_redirs": {
"#chan": "#chan-fullnotify"
},
"host_lookup": {
"#chan"
],
},
"noMissingChans": []
}