Skip to content

Commit daec9d3

Browse files
committed
Debugged through displaying null room info for #25
1 parent dd7189f commit daec9d3

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

ddoc2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ docIface = {
477477
try {
478478
if (userSettings.debug.file_io) {
479479
console.putmsg(cyan + "Looking for room info file: " +
480-
roomData.fileIO.roomRecFilename + "\n");
480+
roomData.fileIO.roomRecFilename + "\n"); //why no workee? 8o|
481481
}
482482

483483
/*for each(var area in msg_area.grp_list[topebaseno].code) {

load/dperroom.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ roomData = {
117117
"\nMsg: " + e.message + "\n");
118118
}
119119

120-
if (roomSettings[bbs.cursub_code].settings.info.length == 0) {
120+
if (roomSettings[bbs.cursub_code].info.length == 0) {
121121
//or should we be looking for null here?
122122
console.putmsg(green + high_intensity +
123123
"The scroll is blank!\n\n");
124124
} else {
125-
for each (var ln in roomSettings[bbs.cursub_code].settings.info) {
125+
for each (var ln in roomSettings[bbs.cursub_code].info) {
126126
console.putmsg(green + high_intensity + ln + "\n");
127127
}
128128
}
@@ -138,7 +138,7 @@ roomData = {
138138
displayRoomInfoHdr : function() {
139139
var mBase = new MsgBase(bbs.cursub_code);
140140

141-
if (roomSettings[bbs.cursub_code] == null) {
141+
/*if (roomSettings[bbs.cursub_code] == null) {
142142
if (userSettings.debug.misc) {
143143
console.putmsg(green + high_intensity +"\nNo roominfo has been " +
144144
"set yet for " + cyan + bbs.cursub_code + "\n\n");
@@ -150,10 +150,10 @@ roomData = {
150150
151151
//this will have to throw an exception after we learn to create
152152
//the new entries
153-
}
153+
} this should now be unnecessary, handled in file_io areas */
154154

155155
console.putmsg(green + high_intensity + "\nForum Moderator is " +
156-
cyan + roomSettings[bbs.cursub_code].settings.moderator + ". " +
156+
cyan + roomSettings[bbs.cursub_code].moderator + ". " +
157157
"Total messages: ");
158158

159159
try {
@@ -167,8 +167,8 @@ roomData = {
167167

168168
console.putmsg(red + high_intensity + mBase.total_msgs + "\n" +
169169
green + "Forum info last updated: " + magenta +
170-
roomSettings[bbs.cursub_code].settings.infoCreationDate + green +
171-
" by " + cyan + roomSettings[bbs.cursub_code].settings.moderator +
170+
roomSettings[bbs.cursub_code].infoCreationDate + green +
171+
" by " + cyan + roomSettings[bbs.cursub_code].moderator +
172172
"\n\n");
173173

174174
mBase.close();

0 commit comments

Comments
 (0)