From b09f783cef506d7df2ab357c7cc57725b295f5a8 Mon Sep 17 00:00:00 2001 From: silversword411 Date: Fri, 16 Dec 2022 09:03:45 -0500 Subject: [PATCH] typo fixes --- agents/meshcore.js | 22 +++++++++++----------- meshmail.js | 2 +- meshmessaging.js | 2 +- rdp/protocol/t125/mcs.js | 8 ++++---- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/agents/meshcore.js b/agents/meshcore.js index bdd5864e..e536e574 100644 --- a/agents/meshcore.js +++ b/agents/meshcore.js @@ -3680,7 +3680,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) { break; } case 'mousetrails': - try { require('win-deskutils'); } catch (ex) { response = 'Unknown command "mousetrails", type "help" for list of avaialble commands.'; break; } + try { require('win-deskutils'); } catch (ex) { response = 'Unknown command "mousetrails", type "help" for list of available commands.'; break; } var id = require('user-sessions').getProcessOwnerName(process.pid).tsid == 0 ? 1 : null; switch (args['_'].length) { @@ -3701,7 +3701,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) { } break; case 'deskbackground': - try { require('win-deskutils'); } catch (ex) { response = 'Unknown command "deskbackground", type "help" for list of avaialble commands.'; break; } + try { require('win-deskutils'); } catch (ex) { response = 'Unknown command "deskbackground", type "help" for list of available commands.'; break; } var id = require('user-sessions').getProcessOwnerName(process.pid).tsid == 0 ? 1 : null; switch (args['_'].length) { @@ -3718,7 +3718,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) { } break; case 'taskbar': - try { require('win-utils'); } catch (ex) { response = 'Unknown command "taskbar", type "help" for list of avaialble commands.'; break; } + try { require('win-utils'); } catch (ex) { response = 'Unknown command "taskbar", type "help" for list of available commands.'; break; } switch (args['_'].length) { case 1: case 2: @@ -3741,7 +3741,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) { break; case 'privacybar': if (process.platform != 'win32' || require('notifybar-desktop').DefaultPinned == null) { - response = 'Unknown command "privacybar", type "help" for list of avaialble commands.'; + response = 'Unknown command "privacybar", type "help" for list of available commands.'; } else { switch (args['_'].length) { @@ -3774,7 +3774,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) { case 'domaininfo': { if (process.platform != 'win32') { - response = 'Unknown command "cs", type "help" for list of avaialble commands.'; + response = 'Unknown command "cs", type "help" for list of available commands.'; break; } if (global._domainQuery != null) { @@ -3822,7 +3822,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) { break; case 'dhcp': // This command is only supported on Linux, this is because Linux does not give us the DNS suffix for each network adapter independently so we have to ask the DHCP server. { - try { require('linux-dhcp'); } catch (ex) { response = 'Unknown command "dhcp", type "help" for list of avaialble commands.'; break; } + try { require('linux-dhcp'); } catch (ex) { response = 'Unknown command "dhcp", type "help" for list of available commands.'; break; } if (args['_'].length == 0) { var j = require('os').networkInterfaces(); var ifcs = []; @@ -3849,7 +3849,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) { } case 'cs': if (process.platform != 'win32') { - response = 'Unknown command "cs", type "help" for list of avaialble commands.'; + response = 'Unknown command "cs", type "help" for list of available commands.'; break; } switch (args['_'].length) { @@ -3929,7 +3929,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) { break; case 'dnsinfo': if (require('os').dns == null) { - response = "Unknown command \"" + cmd + "\", type \"help\" for list of avaialble commands."; + response = "Unknown command \"" + cmd + "\", type \"help\" for list of available commands."; } else { response = 'DNS Servers: '; @@ -4112,7 +4112,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) { break; case 'uac': if (process.platform != 'win32') { - response = 'Unknown command "uac", type "help" for list of avaialble commands.'; + response = 'Unknown command "uac", type "help" for list of available commands.'; break; } if (args['_'].length != 1) { @@ -4154,7 +4154,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) { break; case 'kvmmode': if (require('MeshAgent').maxKvmTileSize == null) { - response = "Unknown command \"kvmmode\", type \"help\" for list of avaialble commands."; + response = "Unknown command \"kvmmode\", type \"help\" for list of available commands."; } else { if (require('MeshAgent').maxKvmTileSize == 0) { @@ -4967,7 +4967,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) { break; } default: { // This is an unknown command, return an error message - response = "Unknown command \"" + cmd + "\", type \"help\" for list of avaialble commands."; + response = "Unknown command \"" + cmd + "\", type \"help\" for list of available commands."; break; } } diff --git a/meshmail.js b/meshmail.js index 6c7ac7e4..c5977ea1 100644 --- a/meshmail.js +++ b/meshmail.js @@ -575,7 +575,7 @@ module.exports.CreateMeshMail = function (parent, domain) { } // - // Device connetion and disconnection notifications + // Device connection and disconnection notifications // obj.deviceNotifications = {}; // UserId --> { timer, nodes: nodeid --> connectType } diff --git a/meshmessaging.js b/meshmessaging.js index b9449447..c0c46d33 100644 --- a/meshmessaging.js +++ b/meshmessaging.js @@ -469,7 +469,7 @@ module.exports.CreateServer = function (parent) { // - // Device connetion and disconnection notifications + // Device connection and disconnection notifications // obj.deviceNotifications = {}; // UserId --> { timer, nodes: nodeid --> connectType } diff --git a/rdp/protocol/t125/mcs.js b/rdp/protocol/t125/mcs.js index 338aae01..52485957 100644 --- a/rdp/protocol/t125/mcs.js +++ b/rdp/protocol/t125/mcs.js @@ -50,7 +50,7 @@ var Channel = { }; /** - * Channel Definde + * Channel Defined */ const RdpdrChannelDef = new type.Component({ name: new type.BinaryString(Buffer.from('rdpdr' + '\x00\x00\x00', 'binary'), { readLength: new type.CallableValue(8) }), @@ -239,7 +239,7 @@ function Client(transport) { this.clientNetworkData = gcc.clientNetworkData(new type.Component([RdpdrChannelDef, CliprdrChannelDef, RdpsndChannelDef])); this.clientSecurityData = gcc.clientSecurityData(); - // must be readed from protocol + // must be read from protocol this.serverCoreData = null; this.serverSecurityData = null; this.serverNetworkData = null; @@ -414,7 +414,7 @@ Client.prototype.connectChannels = function(s) { self.recv(s); }); - // send client and sever gcc informations + // send client and sever gcc information this.emit('connect', { core : this.clientCoreData.obj, @@ -497,7 +497,7 @@ Server.prototype.recvConnectInitial = function (s) { }; /** - * State 2 in mcs server connetion automata + * State 2 in mcs server connection automata */ Server.prototype.sendConnectResponse = function () { var ccReq = gcc.writeConferenceCreateResponse(new type.Component([