* Message to indicate someone already logged in by username

This commit is contained in:
Bryan Ashby 2015-08-04 22:38:28 -06:00
parent 8d1fac41a9
commit ab40eb1fd4
1 changed files with 7 additions and 2 deletions

View File

@ -46,9 +46,14 @@ function login(callingMenu, formData, extraArgs) {
'Already logged in' '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; return;
} }