From: Darren Date: Tue, 26 Mar 2013 12:09:26 +0000 (+0000) Subject: Extra config checks on config.log overloading X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=38ef70863202157b786294332ee5004e1547a19b;p=KiwiIRC.git Extra config checks on config.log overloading --- diff --git a/server/kiwi.js b/server/kiwi.js index a464a35..014cac0 100755 --- a/server/kiwi.js +++ b/server/kiwi.js @@ -14,7 +14,7 @@ config.loadConfig(); // If we're not running in the forground and we have a log file.. switch // console.log to output to a file -if (process.argv.indexOf('-f') === -1 && global.config.log) { +if (process.argv.indexOf('-f') === -1 && global.config && global.config.log) { (function () { var log_file_name = global.config.log;