mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-24 03:30:40 +02:00
Rely on pty.js, minor updates to area changing logic
This commit is contained in:
parent
c9a24b7ec8
commit
d3f82e38da
5 changed files with 25 additions and 16 deletions
|
@ -75,6 +75,12 @@ function changeCurrentArea(client, areaId, cb) {
|
|||
}
|
||||
],
|
||||
function complete(err) {
|
||||
if(!err) {
|
||||
client.log.info( { areaId : areaId }, 'Current message area changed');
|
||||
} else {
|
||||
client.log.warn( { areaId : areaId, error : err.message }, 'Could not change message area');
|
||||
}
|
||||
|
||||
cb(err);
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue