change default lang to en so no crash

This commit is contained in:
reality 2013-02-16 18:07:41 +00:00
parent 238e204d85
commit e648068b1c

2
run.js
View File

@ -90,7 +90,7 @@ DBot.prototype.t = function(string, formatData) {
if(_.has(this.strings, string)) { if(_.has(this.strings, string)) {
var lang = this.config.language; var lang = this.config.language;
if(!_.has(this.strings[string], lang)) { if(!_.has(this.strings[string], lang)) {
lang = "english"; lang = "en";
} }
formattedString = this.strings[string][lang].format(formatData); formattedString = this.strings[string][lang].format(formatData);