From 239e94fe05dd873de80a2165d5b115e05e22d21d Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 18 Aug 2013 19:55:06 +0000 Subject: [PATCH] automatically post version on greload and fix removealias bug --- modules/admin/commands.js | 5 +---- modules/users/commands.js | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/admin/commands.js b/modules/admin/commands.js index 81da643..6027453 100644 --- a/modules/admin/commands.js +++ b/modules/admin/commands.js @@ -46,10 +46,7 @@ var commands = function(dbot) { exec("git submodule update", function (error, stdout, stderr) { event.reply(dbot.t('gpull')); commands['~reload'](event); - event.message = '~version'; - event.action = 'PRIVMSG'; - event.params = event.message.split(' '); - dbot.instance.emit(event); + commands['~version'](event); }.bind(this)); }.bind(this)); }, diff --git a/modules/users/commands.js b/modules/users/commands.js index 2754bfc..81b7b36 100644 --- a/modules/users/commands.js +++ b/modules/users/commands.js @@ -73,7 +73,7 @@ var commands = function(dbot) { })); }); } else { - event.reply(dbot.t('unknown_alias', { 'alias': nick })); + event.reply(dbot.t('unknown_alias', { 'alias': alias })); } }.bind(this)); },