3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 04:02:39 +01:00

Fixes for config path in some place [#489]

This commit is contained in:
reality 2013-06-04 00:10:12 +00:00
parent a25620bf9e
commit b77644d1d4
2 changed files with 3 additions and 3 deletions

View File

@ -126,7 +126,7 @@ var link = function(dbot) {
var urlMatches = event.message.match(this.urlRegex); var urlMatches = event.message.match(this.urlRegex);
if(urlMatches !== null) { if(urlMatches !== null) {
this.links[event.channel.name] = urlMatches[0]; this.links[event.channel.name] = urlMatches[0];
if(dbot.config.link.autoTitle == true) { if(this.config.autoTitle == true) {
var handlerFound = false; var handlerFound = false;
for(var i=0;i<this.handlers.length;i++) { for(var i=0;i<this.handlers.length;i++) {
var matches = this.handlers[i].regex.exec(urlMatches[0]); var matches = this.handlers[i].regex.exec(urlMatches[0]);

4
run.js
View File

@ -101,8 +101,8 @@ DBot.prototype.t = function(string, formatData) {
if(_.has(this.strings[string], lang)) { if(_.has(this.strings[string], lang)) {
var module = this.stringMap[string]; var module = this.stringMap[string];
formattedString = this.strings[string][lang].format(formatData); formattedString = this.strings[string][lang].format(formatData);
if(this.config[module] && this.config[module].outputPrefix) { if(this.config.modules[module] && this.config.modules[module].outputPrefix) {
formattedString = '[' + this.config[module].outputPrefix + '] ' + formattedString = '[' + this.config.modules[module].outputPrefix + '] ' +
formattedString; formattedString;
} }
} }