From 1b49f64498300388e64bbe993a6059866dd3f5ec Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Tue, 15 Feb 2022 11:10:55 -0800 Subject: [PATCH] Use real name in agent message box, #3654 --- agents/meshcore.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/agents/meshcore.js b/agents/meshcore.js index b7ee766a..a83583a4 100644 --- a/agents/meshcore.js +++ b/agents/meshcore.js @@ -1076,6 +1076,8 @@ function handleServerCommand(data) { break; } case 'messagebox': { + sendConsoleText(JSON.stringify(data)); + // Display a message box if (data.title && data.msg) { @@ -1095,6 +1097,7 @@ function handleServerCommand(data) { ipr.title = data.title; ipr.message = data.msg; ipr.username = data.username; + if (data.realname && (data.realname != '')) { ipr.username = data.realname; } global._clientmessage = ipr.then(function (img) { this.messagebox = require('win-dialog').create(this.title, this.message, this.username, { timeout: 120000, b64Image: img.split(',').pop(), background: color_options.background, foreground: color_options.foreground });