mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-30 06:26:14 +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
|
@ -35,6 +35,8 @@ exports.trimMessageAreasScheduledEvent = trimMessageAreasScheduledEvent;
|
|||
|
||||
function getAvailableMessageConferences(client, options) {
|
||||
options = options || { includeSystemInternal : false };
|
||||
|
||||
assert(client || true === options.noClient);
|
||||
|
||||
// perform ACS check per conf & omit system_internal if desired
|
||||
return _.omitBy(Config.messageConferences, (conf, confTag) => {
|
||||
|
@ -42,7 +44,7 @@ function getAvailableMessageConferences(client, options) {
|
|||
return true;
|
||||
}
|
||||
|
||||
return !client.acs.hasMessageConfRead(conf);
|
||||
return client && !client.acs.hasMessageConfRead(conf);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue