From 5bf6088453a70a1b10cf174fc4adc685c308868f Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 25 May 2013 21:34:11 +0000 Subject: [PATCH] fix command emit on reload --- modules/command/command.js | 2 +- modules/command/config.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/command/command.js b/modules/command/command.js index 3ad891c..a950199 100644 --- a/modules/command/command.js +++ b/modules/command/command.js @@ -50,7 +50,7 @@ var command = function(dbot) { }); } } - dbot.api.event.emit('command', [ event ]); + if(commandName != 'reload') dbot.api.event.emit('command', [ event ]); dbot.save(); } else { if(commandName !== '~') { diff --git a/modules/command/config.json b/modules/command/config.json index 08bcfe1..ead0df9 100644 --- a/modules/command/config.json +++ b/modules/command/config.json @@ -1,5 +1,5 @@ { "ignorable": false, - "dependencies": [ "ignore", "users" ], + "dependencies": [ "event", "ignore", "users" ], "useNickserv": false }