mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-30 14:36:19 +02:00
Minor
This commit is contained in:
parent
65a5eabe9c
commit
21374d6e6d
1 changed files with 4 additions and 3 deletions
|
@ -913,11 +913,12 @@ class QWKPacketWriter extends EventEmitter {
|
|||
return;
|
||||
}
|
||||
|
||||
while (confNumber < 65537 && usedConfNumbers.has(confNumber)) {
|
||||
while (confNumber < 10001 && usedConfNumbers.has(confNumber)) {
|
||||
++confNumber;
|
||||
}
|
||||
|
||||
if (confNumber === 65536) { // sanity...
|
||||
// we can go up to 65535 for some things, but NDX files are limited to 9999
|
||||
if (confNumber === 10000) { // sanity...
|
||||
this.emit('warning', Errors.General(`To many conferences`));
|
||||
} else {
|
||||
this.areaTagConfMap[areaTag] = confNumber;
|
||||
|
@ -1412,7 +1413,7 @@ class QWKPacketWriter extends EventEmitter {
|
|||
return callback(null);
|
||||
}
|
||||
|
||||
const indexStream = fs.createWriteStream(paths.join(this.workDir, '0000.ndx'));
|
||||
const indexStream = fs.createWriteStream(paths.join(this.workDir, '000.ndx'));
|
||||
this.inboxIndex.forEach(offset => appendIndexData(indexStream, offset));
|
||||
|
||||
indexStream.on('close', err => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue