Skip to content

Commit 3e1561c

Browse files
committed
Merge pull request #186 from dgets/hotfix-yell
Fixed problems with yell (Closed #185)
2 parents 4d527a8 + 3a91aad commit 3e1561c

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
@@ -176,9 +176,9 @@ poast = {
176176
var mTxt = new Array();
177177
//var lNdx, uchoice, done = false;
178178

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

183183
//going to use a generic subject for now; ignoring it from the
184184
//ddoc interface completely to see how it goes
@@ -389,12 +389,18 @@ poast = {
389389
* throw exception
390390
*/
391391
yell : function() {
392-
console.putmsg(green + high_intensity + "\nPress 'y' to send" +
392+
/* console.putmsg(green + high_intensity + "\nPress 'y' to send" +
393393
" a yell to the Sysop(s).\n\nEnter your choice -> ");
394394
if (console.getkey().toUpperCase() != 'Y') {
395395
throw new dDocException("yell() Exception",
396396
"User didn't want to yell", 1);
397-
}
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+
}
398404

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

0 commit comments

Comments
 (0)