Skip to content

Commit e4f1808

Browse files
committed
Merge pull request #187 from dgets/master
Bringing devel up to current due to an oopsie mergie
2 parents 327e6aa + 3e1561c commit e4f1808

5 files changed

Lines changed: 15 additions & 321 deletions

File tree

load/dexpress.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ wholist = {
8787
* NOTE: This needs to be less of a monolith
8888
*/
8989
list_long : function(ul) {
90+
var timeon;
91+
9092
//time to do this the right way
9193
bbs.log_key("w");
9294

load/dperroom.js

Lines changed: 2 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -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 +

load/dpoast.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,6 @@ poast = {
144144
"\nlength: " + mTxt.length + "\nBeing returned\n");
145145
}
146146

147-
//this is an ugly hack fix, but whatever; it's quick and
148-
//works for now (issue #136 on github)
149-
mTxt.pop();
150147
return mTxt;
151148
break;
152149
/* case 'X':
@@ -179,9 +176,9 @@ poast = {
179176
var mTxt = new Array();
180177
//var lNdx, uchoice, done = false;
181178

182-
if (userSettings.debug.message_posting) {
179+
/*if (userSettings.debug.message_posting) {
183180
console.putmsg("Attempting post to: " + base.cfg.code + "\n");
184-
}
181+
}*/
185182

186183
//going to use a generic subject for now; ignoring it from the
187184
//ddoc interface completely to see how it goes
@@ -392,12 +389,18 @@ poast = {
392389
* throw exception
393390
*/
394391
yell : function() {
395-
console.putmsg(green + high_intensity + "\nPress 'y' to send" +
392+
/* console.putmsg(green + high_intensity + "\nPress 'y' to send" +
396393
" a yell to the Sysop(s).\n\nEnter your choice -> ");
397394
if (console.getkey().toUpperCase() != 'Y') {
398395
throw new dDocException("yell() Exception",
399396
"User didn't want to yell", 1);
400-
}
397+
} */
398+
399+
if (console.noyes("Send Yell to SysOp")) {
400+
console.putmsg(yellow + high_intensity + "Aborting Yell to " +
401+
"SysOp\n");
402+
return;
403+
}
401404

402405
var mb = new MsgBase('mail');
403406
if (userSettings.debug.message_posting) {

misc/login.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,28 +54,13 @@ for(var c=0; c<10; c++) {
5454
// Continue normal login (prompting for password)
5555
// modified by Khelair for usage w/ddoc2
5656
if(bbs.login(str, "\1n\1c\1hPW:\b\b\bPassword: \1w")) {
57-
/*
58-
//while we're in a debugging mode here
59-
console.putmsg("Shell: " + user.command_shell.toUpperCase() +
60-
" (to upper)\n");
61-
console.getkey(); //since we're not seeing the pause w/ddoc
62-
6357
//check to see if we're a ddoc user, skip interactive if so
6458
if (user.command_shell.toUpperCase() == "DDOC") {
6559
exit();
6660
} else {
6761
bbs.logon();
6862
exit();
69-
} */
70-
/*if (console.noyes("Quick login?")) {
71-
bbs.logon();
72-
exit();
73-
} else {
74-
exit();
75-
}*/
76-
77-
bbs.logon();
78-
exit();
63+
}
7964
}
8065
console.clearkeybuffer(); // Clear pending input (e.g. mistyped system password)
8166
bbs.rlogin_name=''; // Clear user/login name (if supplied via protocol)

0 commit comments

Comments
 (0)