1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Added agent notification internalization.

This commit is contained in:
Ylian Saint-Hilaire 2021-06-04 11:15:51 -07:00
parent 71de4af33d
commit e39cd672ab
2 changed files with 7 additions and 1 deletions

View file

@ -2941,6 +2941,10 @@ function processConsoleCommand(cmd, args, rights, sessionid) {
sendPeriodicServerUpdate();
break;
}
case 'agentmsgx': {
try { mesh.SendCommand({ action: 'sessions', type: 'msg', value: { 0: { msg: "This is an old agent version, consider updating.", msgid: 117, icon: 3 } } }); } catch (ex) { }
break;
}
case 'agentmsg': {
if (args['_'].length == 0) {
response = "Proper usage:\r\n agentmsg add \"[message]\" [iconIndex]\r\n agentmsg remove [index]\r\n agentmsg list"; // Display usage