mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 03:33:07 +01:00
Fixes for config path in some place [#489]
This commit is contained in:
parent
a25620bf9e
commit
b77644d1d4
@ -126,7 +126,7 @@ var link = function(dbot) {
|
||||
var urlMatches = event.message.match(this.urlRegex);
|
||||
if(urlMatches !== null) {
|
||||
this.links[event.channel.name] = urlMatches[0];
|
||||
if(dbot.config.link.autoTitle == true) {
|
||||
if(this.config.autoTitle == true) {
|
||||
var handlerFound = false;
|
||||
for(var i=0;i<this.handlers.length;i++) {
|
||||
var matches = this.handlers[i].regex.exec(urlMatches[0]);
|
||||
|
4
run.js
4
run.js
@ -101,8 +101,8 @@ DBot.prototype.t = function(string, formatData) {
|
||||
if(_.has(this.strings[string], lang)) {
|
||||
var module = this.stringMap[string];
|
||||
formattedString = this.strings[string][lang].format(formatData);
|
||||
if(this.config[module] && this.config[module].outputPrefix) {
|
||||
formattedString = '[' + this.config[module].outputPrefix + '] ' +
|
||||
if(this.config.modules[module] && this.config.modules[module].outputPrefix) {
|
||||
formattedString = '[' + this.config.modules[module].outputPrefix + '] ' +
|
||||
formattedString;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user