From 55dec1232416fdf49fdd7277291a8ba481e2046d Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Wed, 23 May 2012 18:02:02 +0100 Subject: [PATCH] Fixed output on module load, added a new translation for search results. --- run.js | 4 ++-- strings.json | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/run.js b/run.js index f58eec4..d0fbbc4 100644 --- a/run.js +++ b/run.js @@ -53,7 +53,7 @@ var DBot = function(timers) { // Populate bot properties with config data this.name = this.config.name || 'dbox'; this.admin = this.config.admin || [ 'reality' ]; - this.moduleNames = this.config.modules || [ 'command', 'js' ]; + this.moduleNames = this.config.modules || [ 'command', 'js', 'quotes' ]; this.language = this.config.language || 'english'; // It's the user's responsibility to fill this data structure up properly in @@ -167,7 +167,7 @@ DBot.prototype.reloadModules = function() { this.modules.push(module); } catch(err) { - console.log(this.strings[this.language].module_load_error.format({'moduleName': name})); + console.log(this.t('module_load_error', {'moduleName': name})); console.log(err); } }.bind(this)); diff --git a/strings.json b/strings.json index 493d62b..6761598 100644 --- a/strings.json +++ b/strings.json @@ -186,5 +186,8 @@ "kicked_dbot": { "english": "Thou shalt not kick {botname}", "spanish": "No expulsás {botname}" + }, + "search_results": { + "english": "{category} ({needle}): '{quote}' [{matches} results]" } }