From 64c8d83559482643b2d4dadae322aa173bf3ae35 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Fri, 21 Aug 2015 13:47:01 -0600 Subject: [PATCH] * NO CARRIER :) --- core/bbs.js | 3 ++- core/system_menu_method.js | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/core/bbs.js b/core/bbs.js index 8513f5ba..99bbbffb 100644 --- a/core/bbs.js +++ b/core/bbs.js @@ -131,7 +131,8 @@ function initialize(cb) { var propLoadOpts = { userId : 1, names : [ 'real_name', 'sex', 'email_address' ], - } + }; + user.loadProperties(propLoadOpts, function propsLoaded(err, props) { if(!err) { conf.config.general.sysOp = { diff --git a/core/system_menu_method.js b/core/system_menu_method.js index ab797db4..f35d1498 100644 --- a/core/system_menu_method.js +++ b/core/system_menu_method.js @@ -123,7 +123,14 @@ function logoff(callingMenu, formData, extraArgs) { var client = callingMenu.client; setTimeout(function timeout() { - client.term.write(ansi.normal() + '\n+++ATH0\n'); + // + // For giggles... + // + client.term.write( + ansi.normal() + '\n' + + require('crypto').randomBytes(Math.floor(Math.random() * 25) + 5).toString() + + 'NO CARRIER'); + client.end(); }, 500); } \ No newline at end of file