From ab40eb1fd4e4ac9fff5989e048eaf1fd4698256b Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Tue, 4 Aug 2015 22:38:28 -0600 Subject: [PATCH] * Message to indicate someone already logged in by username --- core/system_menu_method.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/system_menu_method.js b/core/system_menu_method.js index a75d91d9..ab797db4 100644 --- a/core/system_menu_method.js +++ b/core/system_menu_method.js @@ -46,9 +46,14 @@ function login(callingMenu, formData, extraArgs) { 'Already logged in' ); - // :TODO: display message/art/etc. + // :TODO: display custom message if present + + client.term.write('\nA user by that name is already logged in.\n'); + + setTimeout(function timeout() { + client.gotoMenuModule( { name : callingMenu.menuConfig.fallback } ); + }, 500); - client.gotoMenuModule( { name : callingMenu.menuConfig.fallback } ); return; }