From 9b4aba39b138c1e0b245ca7797228c205ca77a47 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Tue, 14 Feb 2012 00:35:02 +0000 Subject: [PATCH] wrong params thing in unload --- modules/admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/admin.js b/modules/admin.js index 03a87f0..b938de8 100644 --- a/modules/admin.js +++ b/modules/admin.js @@ -37,7 +37,7 @@ var adminCommands = function(dbot) { 'unload': function(data, params) { if(dbot.moduleNames.include(params[1])) { - var cacheKey = require.resolve('./modules/' + name); + var cacheKey = require.resolve('./modules/' + params[1]); delete require.cache[cacheKey]; delete dbot.moduleNames[params[1]]; dbot.reloadModules();