From 6f48c3004431cca57b9f97d6738e350a2b76eca5 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sun, 2 Dec 2012 16:26:56 +0000 Subject: [PATCH] fix ~usage --- modules/command.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/command.js b/modules/command.js index b8b75a7..ea3043d 100644 --- a/modules/command.js +++ b/modules/command.js @@ -55,7 +55,8 @@ var command = function(dbot) { 'commands': { '~usage': function(event) { - var commandName = event.params[0]; + var commandName = event.params[1]; + console.log(commandName); if(dbot.commands.hasOwnProperty(commandName)) { event.reply('Usage for ' + commandName + ': ' + dbot.commands[commandName].usage);