Skip to content

Commit 3a91aad

Browse files
committed
Fixed problems with yell (Closed #185)
1 parent 327e6aa commit 3a91aad

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

load/dpoast.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ poast = {
179179
var mTxt = new Array();
180180
//var lNdx, uchoice, done = false;
181181

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

186186
//going to use a generic subject for now; ignoring it from the
187187
//ddoc interface completely to see how it goes
@@ -392,12 +392,18 @@ poast = {
392392
* throw exception
393393
*/
394394
yell : function() {
395-
console.putmsg(green + high_intensity + "\nPress 'y' to send" +
395+
/* console.putmsg(green + high_intensity + "\nPress 'y' to send" +
396396
" a yell to the Sysop(s).\n\nEnter your choice -> ");
397397
if (console.getkey().toUpperCase() != 'Y') {
398398
throw new dDocException("yell() Exception",
399399
"User didn't want to yell", 1);
400-
}
400+
} */
401+
402+
if (console.noyes("Send Yell to SysOp")) {
403+
console.putmsg(yellow + high_intensity + "Aborting Yell to " +
404+
"SysOp\n");
405+
return;
406+
}
401407

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

0 commit comments

Comments
 (0)