mirror of
https://github.com/reality/dbot.git
synced 2024-11-30 16:09:27 +01:00
wrong path in unload
This commit is contained in:
parent
9b4aba39b1
commit
9856fdc5b2
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user