mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 14:44:40 +02:00
* Servers now define 'firstMenu'. This allows e.g. SSH to pre auth, while Telnet still gets the matrix
This commit is contained in:
parent
12e7722ec9
commit
4a22ce0924
4 changed files with 26 additions and 11 deletions
|
@ -12,6 +12,7 @@ var paths = require('path');
|
|||
var async = require('async');
|
||||
var util = require('util');
|
||||
var _ = require('lodash');
|
||||
var assert = require('assert');
|
||||
|
||||
exports.bbsMain = bbsMain;
|
||||
|
||||
|
@ -179,6 +180,9 @@ function startListening() {
|
|||
return;
|
||||
}
|
||||
|
||||
// servers require 'firstMenu'
|
||||
assert(module.runtime.config.firstMenu, 'Server missing \'firstMenu\' member!');
|
||||
|
||||
var moduleInst = new module.getModule();
|
||||
var server = moduleInst.createServer();
|
||||
|
||||
|
@ -204,7 +208,7 @@ function startListening() {
|
|||
|
||||
// Go to module -- use default error handler
|
||||
prepareClient(client, function onPrepared() {
|
||||
require('./connect.js').connectEntry(client);
|
||||
require('./connect.js').connectEntry(client, module.runtime.config.firstMenu);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue