Skip to content

Commit

Permalink
typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
silversword411 committed Dec 16, 2022
1 parent b523854 commit b09f783
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
22 changes: 11 additions & 11 deletions agents/meshcore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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)
{
Expand All @@ -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:
Expand All @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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 = [];
Expand All @@ -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) {
Expand Down Expand Up @@ -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: ';
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion meshmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion meshmessaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
8 changes: 4 additions & 4 deletions rdp/protocol/t125/mcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) }),
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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([
Expand Down

0 comments on commit b09f783

Please sign in to comment.