mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 04:37:12 +02:00
* Couple more toString() -> decode() updates
This commit is contained in:
parent
46088a9f02
commit
f318dc8da2
4 changed files with 4 additions and 5 deletions
|
@ -10,6 +10,7 @@ var userLogin = require('./user_login.js').userLogin;
|
|||
|
||||
var async = require('async');
|
||||
var _ = require('lodash');
|
||||
var iconv = require('iconv-lite');
|
||||
|
||||
exports.login = login;
|
||||
exports.logoff = logoff;
|
||||
|
@ -66,7 +67,7 @@ function logoff(callingMenu, formData, extraArgs) {
|
|||
//
|
||||
client.term.write(
|
||||
ansi.normal() + '\n' +
|
||||
require('crypto').randomBytes(Math.floor(Math.random() * 65) + 20).toString(client.term.outputEncoding) +
|
||||
iconv.decode(require('crypto').randomBytes(Math.floor(Math.random() * 65) + 20), client.term.outputEncoding) +
|
||||
'NO CARRIER');
|
||||
|
||||
client.end();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue