@@ -82,38 +82,6 @@ roomData = {
8282 console . putmsg ( green + high_intensity + "\nStaying the same for " +
8383 "now . . .\n" ) ;
8484 }
85- } ,
86- /*
87- * summary:
88- * If the current user is the sysop/cosysop, allows editing of the
89- * room's info to set a moderator
90- */
91- changeRoomModerator : function ( ) {
92- var newMod = new String ( ) ;
93-
94- if ( user . security . level >= 80 ) {
95- //go ahead and set the moderator for this room/sub
96- console . putmsg ( yellow + high_intensity + "Changing moderator for " +
97- user . cursub + "\nNew Moderator: " + green ) ;
98- newMod = console . getstr ( "New Moderator: " , 40 ) ; //max user alias len
99-
100- while ( system . matchuser ( newMod ) == 0 ) {
101- console . putmsg ( yellow + newMod + " not found.\n" ) ;
102- newMod = console . getstr ( "New Moderator: " , 40 ) ;
103- }
104-
105- roomSettings [ bbs . cursub_code ] . moderator = newMod ;
106- } else {
107- //add some error logging here at some point, as well; this could be
108- //a security concern at some point
109- console . putmsg ( red + high_intensity + "Your security level is not" +
110- " high enough to change room moderator.\nMust we log this?\n" ) ;
111- throw new dDocException ( "changeRoomModerator() Exception" ,
112- "Not high enough security to change room moderator" , 1 ) ;
113- }
114-
115- roomData . fileIO . saveRoomInfo ( ) ;
116-
11785 } ,
11886 /*
11987 * summary:
@@ -123,36 +91,12 @@ roomData = {
12391 changeRoomInfo : function ( ) {
12492 var infoTxt = new Array ( ) ;
12593
126- if ( roomSettings [ bbs . cursub_code ] . moderator != user . alias ) {
127- try {
128- this . changeRoomModerator ( ) ;
129- } catch ( e ) {
130- if ( userSettings . debug . misc ) {
131- console . putmsg ( yellow + "Unable to change room mod!\n" +
132- "Msg: " + red + high_intensity + e . message + "\n" ) ;
133- }
134-
135- throw new dDocException ( "changeRoomInfo() Exception" ,
136- "Exception in changeRoomModerator()" , 1 ) ;
137- //that should keep anyone from getting beyond here that
138- //shouldn't be
139- }
140- }
141-
142- var nao = new Date ( ) ;
143- roomSettings [ bbs . cursub_code ] . infoCreationDate =
144- nao . getDate ( ) + nao . toUTCString ( ) ;
145-
146- this . displayRoomInfoHdr ( ) ;
147-
14894 if ( ( infoTxt = poast . getTextBlob ( this . maxInfoLines ) ) != null ) {
14995 roomSettings [ bbs . cursub_code ] . info = infoTxt ;
150- //this will be set in a separate method handling moderators
151- //roomSettings[bbs.cursub_code].moderator = user.alias;
96+ roomSettings [ bbs . cursub_code ] . moderator = user . alias ;
15297 //of course this will have to be replaced with better code to
15398 //make sure the person is authorized, sysop modification of it,
15499 //etc etc etc (re: above)
155-
156100 //roomSettings[bbs.cursub_code].infoCreationDate =
157101 roomData . fileIO . saveRoomInfo ( ) ;
158102 }
@@ -166,6 +110,7 @@ roomData = {
166110 roomData . fileIO . snagRoomInfoBlob ( ) ;
167111 this . displayRoomInfoHdr ( ) ;
168112
113+
169114 if ( roomSettings [ bbs . cursub_code ] . info . length == 0 ) {
170115 //or should we be looking for null here?
171116 console . putmsg ( green + high_intensity +
0 commit comments