Skip to content

Commit fe13bb4

Browse files
committed
Closed #134; seriously debugged en route to room info working properly
1 parent daec9d3 commit fe13bb4

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

load/dperroom.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,21 @@ roomData = {
9292

9393
if ((infoTxt = poast.getTextBlob(this.maxInfoLines)) != null) {
9494
//save the new room info
95-
try {
95+
/* try {
9696
roomSettings[bbs.cursub_code] =
9797
roomData.fileIO.saveRoomInfo(infoTxt, bbs.cursub_code);
9898
} catch (e) {
9999
console.putmsg(red + "changeRoomInfo() exception: " +
100100
e.name + "\nmessage: " + e.message + "\tnum: " + e.number +
101101
"\n");
102-
}
102+
}*/
103+
roomSettings[bbs.cursub_code].info = infoTxt;
104+
roomSettings[bbs.cursub_code].moderator = user.alias;
105+
//of course this will have to be replaced with better code to
106+
//make sure the person is authorized, sysop modification of it,
107+
//etc etc etc (re: above)
108+
//roomSettings[bbs.cursub_code].infoCreationDate =
109+
roomData.fileIO.saveRoomInfo();
103110
}
104111
},
105112
/*
@@ -152,6 +159,11 @@ roomData = {
152159
//the new entries
153160
} this should now be unnecessary, handled in file_io areas */
154161

162+
if (userSettings.debug.misc) {
163+
console.putmsg(green + "Working with roomSettings:\n" +
164+
JSON.stringify(roomSettings) + "\n");
165+
}
166+
155167
console.putmsg(green + high_intensity + "\nForum Moderator is " +
156168
cyan + roomSettings[bbs.cursub_code].moderator + ". " +
157169
"Total messages: ");

0 commit comments

Comments
 (0)