fix ~usage

This commit is contained in:
Luke Slater 2012-12-02 16:26:56 +00:00
parent b17ad5042b
commit 6f48c30044

View File

@ -55,7 +55,8 @@ var command = function(dbot) {
'commands': { 'commands': {
'~usage': function(event) { '~usage': function(event) {
var commandName = event.params[0]; var commandName = event.params[1];
console.log(commandName);
if(dbot.commands.hasOwnProperty(commandName)) { if(dbot.commands.hasOwnProperty(commandName)) {
event.reply('Usage for ' + commandName + ': ' + event.reply('Usage for ' + commandName + ': ' +
dbot.commands[commandName].usage); dbot.commands[commandName].usage);