mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-24 19:48:23 +02:00
* Some code cleanup
* Lots of notes/thoughts
This commit is contained in:
parent
e8346779da
commit
3f92a7949d
6 changed files with 157 additions and 41 deletions
12
core/art.js
12
core/art.js
|
@ -452,8 +452,18 @@ function display(options, cb) {
|
|||
|
||||
parser.on('mci', function mciEncountered(mciInfo) {
|
||||
|
||||
/*
|
||||
if('PA' === mciInfo.mci) {
|
||||
// :TODO: can't do this until this thing is pausable anyway...
|
||||
options.client.waitForKeyPress(function kp(k) {
|
||||
console.log('got a key: ' + k);
|
||||
});
|
||||
return;
|
||||
}
|
||||
*/
|
||||
|
||||
// :TODO: ensure generatedId's do not conflict with any |id|
|
||||
var id = _.isUndefined(mciInfo.id) ? generatedId++ : mciInfo.id;
|
||||
var id = !_.isNumber(mciInfo.id) ? generatedId++ : mciInfo.id;
|
||||
var mapKey = mciInfo.mci + id;
|
||||
var mapEntry = mciMap[mapKey];
|
||||
if(mapEntry) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue