diff --git a/chat-plugins/dexsearch.js b/chat-plugins/dexsearch.js index 3f52efc982..94eae229f2 100644 --- a/chat-plugins/dexsearch.js +++ b/chat-plugins/dexsearch.js @@ -153,6 +153,14 @@ if (!process.send) { } else { // This is the child + global.Config = require('../config/config.js'); + + if (Config.crashguard) { + process.on('uncaughtException', err => { + require('./crashlogger.js')(err, 'A dexsearch process', true); + }); + } + global.Tools = require('../tools.js'); global.toId = Tools.getId; Tools.includeData();