* Add oputil import support for *.NA and AREAS.BBS

This commit is contained in:
Bryan Ashby 2017-02-20 11:31:24 -07:00
parent 5c58fd2cfa
commit 0ca2ca9bf2
8 changed files with 355 additions and 37 deletions

View file

@ -41,7 +41,12 @@ function hasMessageConferenceAndArea(config) {
return result;
}
function init(configPath, cb) {
function init(configPath, options, cb) {
if(!cb && _.isFunction(options)) {
cb = options;
options = {};
}
async.waterfall(
[
function loadUserConfig(callback) {
@ -56,7 +61,7 @@ function init(configPath, cb) {
let configJson;
try {
configJson = hjson.parse(configData);
configJson = hjson.parse(configData, options);
} catch(e) {
return callback(e);
}