X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=node%2Fkiwi.js;h=189301f414747387b51b654a378e4a9f2e1a9d40;hb=c89b9fdfa39466d416576727dbdaa305f07e856c;hp=032b560cb21cc9a414e70ce57f86fad7519a148a;hpb=277b3040268e414a1a49b8dc8b085b85f2cba479;p=KiwiIRC.git diff --git a/node/kiwi.js b/node/kiwi.js index 032b560..189301f 100644 --- a/node/kiwi.js +++ b/node/kiwi.js @@ -29,7 +29,7 @@ this.kiwi_root = __dirname; * Configuration and rehashing routines */ var config_filename = 'config.json', - config_dirs = ['/etc/kiwiirc/', __dirname + '/']; + config_dirs = ['/etc/kiwiirc/', this.kiwi_root + '/']; this.config = {}; this.loadConfig = function () { @@ -83,8 +83,8 @@ this.rehash = function () { // Reloads app.js during runtime for any recoding this.recode = function () { - if (typeof require.cache[__dirname + '/app.js'] !== 'undefined'){ - delete require.cache[__dirname + '/app.js']; + if (typeof require.cache[this.kiwi_root + '/app.js'] !== 'undefined'){ + delete require.cache[this.kiwi_root + '/app.js']; } app = null;