mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-21 10:15:55 +02:00
* Add oputil import support for *.NA and AREAS.BBS
This commit is contained in:
parent
5c58fd2cfa
commit
0ca2ca9bf2
8 changed files with 355 additions and 37 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue