Skip to content

Commit 9d4d51c

Browse files
committed
Working on #25, though a rewrite may be best at this point
1 parent bca08ae commit 9d4d51c

3 files changed

Lines changed: 18 additions & 6 deletions

File tree

ddoc2.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,14 @@ docIface = {
475475

476476
//load room settings
477477
try {
478+
if (userSettings.debug.file_io) {
479+
console.putmsg(cyan + "Looking for room info file: " +
480+
roomData.fileIO.roomRecFilename + "\n");
481+
}
478482
roomSettings = roomData.fileIO.snagRoomInfoBlob(
479-
roomData.fileIO.roomRecFilename, bbs.cursub);
483+
"/sbbs/data/user/docrooms",
484+
//roomData.fileIO.roomRecFilename,
485+
bbs.cursub);
480486
} catch (e) {
481487
console.putmsg(red + high_intensity + "Loading room data in " +
482488
"initDdoc:\n");

load/dmbase.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,11 +644,11 @@ msg_base = {
644644
readNew : function() {
645645
var mBase = this.openNewMBase(bbs.cursub_code);
646646

647-
if (userSettings.debug.navigation) {
647+
/*if (userSettings.debug.navigation) {
648648
console.putmsg(yellow + msg_area.sub[bbs.cursub_code].index + ": " +
649649
roomData.tieIns.isZapped(msg_area.sub[bbs.cursub_code].index) +
650650
"\n");
651-
}
651+
}*/
652652

653653
//if (!roomData.tieIns.isZapped(msg_area.sub[bbs.cursub_code].index)) {
654654
if (msg_area.sub[bbs.cursub_code].scan_ptr < mBase.total_msgs) {

load/dperroom.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,13 @@ roomData = {
292292
* JSON blob specified above
293293
*/
294294
snagRoomInfoBlob : function(roomFile, roomReq) {
295-
var roomInfoFile = new File(this.roomRecFilename);
295+
//var roomInfoFile = new File(this.roomRecFilename);
296+
var roomInfoFile = new File(roomFile);
297+
298+
if (userSettings.debug.file_io) {
299+
console.putmsg("Trying to load room info file: " +
300+
this.roomRecFilename + " (in snagRoomInfoBlob)\n");
301+
}
296302

297303
if (roomInfoFile.exists) {
298304
try {
@@ -449,7 +455,7 @@ roomData = {
449455
* necessary, to record the entries
450456
*/
451457
writeUserZappedRooms : function() {
452-
var success = false;
458+
//var success = false;
453459
/*var outfile = new File(this.roomData.userDir +
454460
this.userRoomSettingsFilename); */
455461
var outfile = new File(system.data_dir + "user/durooms");
@@ -505,7 +511,7 @@ roomData = {
505511
zappedRooms[user.number] = roomData.roomRecords.defaultSettings;
506512
return false;
507513
} else {
508-
for each(zNo in zappedRooms[user.number].zRooms) {
514+
for each(var zNo in zappedRooms[user.number].zRooms) {
509515
if (roomNo == zNo) {
510516
return true;
511517
}

0 commit comments

Comments
 (0)