mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-11 23:24:43 +02:00
* New user reserved names now direct to applicaiton process for SSH
This commit is contained in:
parent
93cff52c1f
commit
e9836e18db
5 changed files with 130 additions and 24 deletions
|
@ -180,9 +180,6 @@ function startListening() {
|
|||
return;
|
||||
}
|
||||
|
||||
// servers require 'firstMenu'
|
||||
assert(module.runtime.config.firstMenu, 'Server missing \'firstMenu\' member!');
|
||||
|
||||
var moduleInst = new module.getModule();
|
||||
var server = moduleInst.createServer();
|
||||
|
||||
|
@ -202,13 +199,13 @@ function startListening() {
|
|||
|
||||
clientConns.addNewClient(client, clientSock);
|
||||
|
||||
client.on('ready', function onClientReady() {
|
||||
client.on('ready', function clientReady(readyOptions) {
|
||||
|
||||
client.startIdleMonitor();
|
||||
|
||||
// Go to module -- use default error handler
|
||||
prepareClient(client, function onPrepared() {
|
||||
require('./connect.js').connectEntry(client, module.runtime.config.firstMenu);
|
||||
prepareClient(client, function clientPrepared() {
|
||||
require('./connect.js').connectEntry(client, readyOptions.firstMenu);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue