diff --git a/run.js b/run.js index 07a017e..17d8c8e 100644 --- a/run.js +++ b/run.js @@ -97,7 +97,7 @@ 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].outputPrefix) { + if(this.config[module] && this.config[module].outputPrefix) { formattedString = '[' + this.config[module].outputPrefix + '] ' + formattedString; }