mirror of
https://github.com/xnite/MCSeeker.git
synced 2026-05-02 12:54:50 -07:00
Update scanner.js
fix bug where there is no output if you select show-desc
This commit is contained in:
@@ -127,7 +127,8 @@ scan.on('result', function(data){
|
||||
var theText = data.ip + ":" + data.port + "\t" + pingRes.version.name + "\t" + pingRes.players.online + " of " + pingRes.players.max + " players";
|
||||
if(process.params['show-desc'])
|
||||
{
|
||||
theText += "\t"+mcp(pingRes.description.text).replace(/\n/g, ' ');
|
||||
theText += "\t"+mcp(pingRes.description).replace(/\n/g, ' ');
|
||||
// pingRes.description is a string, not an object
|
||||
}
|
||||
if (SCAN_OPTS_OUTPUT_CSV)
|
||||
{
|
||||
@@ -229,4 +230,4 @@ scan.on('error', err => {
|
||||
scan.on('done', () => {
|
||||
console.log("Scan finished!");
|
||||
});
|
||||
scan.run();
|
||||
scan.run();
|
||||
|
||||
Reference in New Issue
Block a user