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)); },