* predefined_mci.js: General method for resolving MCI codes -> string

* Changed MCI resolution to use object to function mapping so entries not yet available would not be executed
* enigmaToAnsi() can now (optionally) resolve MCI codes
* pipeWrite() resolves MCI codes
This commit is contained in:
Bryan Ashby 2015-09-10 21:01:04 -06:00
parent 870e5a9136
commit 6b03b5357f
6 changed files with 130 additions and 116 deletions

View file

@ -86,9 +86,9 @@ function prepareTerminal(term) {
function displayBanner(term) {
// :TODO: add URL(s) to banner
term.pipeWrite(
('|33Conected to |32EN|33|01i|00|32|22GMA|32|01½|00 |33BBS version|31|01 {0}\n' +
'|33Conected to |32EN|33|01i|00|32|22GMA|32|01½|00 |33BBS version|31|01 |VN\n' +
'|00|33Copyright (c) 2014-2015 Bryan Ashby |33|01- |31|01http://l33t.codes/\n' +
'|00').format(packageJson.version));
'|00');
}
function connectEntry(client) {