mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-04 00:41:56 +02:00
* Not much ... few minor changes
This commit is contained in:
parent
9442760679
commit
3be271aab5
6 changed files with 84 additions and 7 deletions
|
@ -128,7 +128,7 @@ function logoff(callingMenu, formData, extraArgs) {
|
|||
//
|
||||
client.term.write(
|
||||
ansi.normal() + '\n' +
|
||||
require('crypto').randomBytes(Math.floor(Math.random() * 35) + 10).toString(client.term.outputEncoding) +
|
||||
require('crypto').randomBytes(Math.floor(Math.random() * 65) + 20).toString(client.term.outputEncoding) +
|
||||
'NO CARRIER');
|
||||
|
||||
client.end();
|
||||
|
|
|
@ -521,7 +521,11 @@ ViewController.prototype.loadFromPromptConfig = function(options, cb) {
|
|||
|
||||
ViewController.prototype.loadFromMenuConfig = function(options, cb) {
|
||||
assert(_.isObject(options));
|
||||
assert(_.isObject(options.mciMap));
|
||||
|
||||
if(!_.isObject(options.mciMap)) {
|
||||
cb(new Error('Missing option: mciMap'));
|
||||
return;
|
||||
}
|
||||
|
||||
var self = this;
|
||||
var formIdKey = options.formId ? options.formId.toString() : '0';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue