3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 22:39:26 +01:00

wrong path in unload

This commit is contained in:
Luke Slater 2012-02-14 00:35:54 +00:00
parent 9b4aba39b1
commit 9856fdc5b2

View File

@ -37,7 +37,7 @@ var adminCommands = function(dbot) {
'unload': function(data, params) {
if(dbot.moduleNames.include(params[1])) {
var cacheKey = require.resolve('./modules/' + params[1]);
var cacheKey = require.resolve('../modules/' + params[1]);
delete require.cache[cacheKey];
delete dbot.moduleNames[params[1]];
dbot.reloadModules();