Fix style issues and linting issues, and a typo, too

This commit is contained in:
Cyril 2021-01-27 21:47:52 +01:00
parent cacb1599e3
commit 297f87c55d
2 changed files with 5 additions and 4 deletions

View File

@ -46,7 +46,7 @@ if (options.help) {
console.log(commandLineUsage([
{
header: "Matrix Skype Puppet Bridge",
content: "A matrix puppet bridge for skype",
content: "A matrix puppet bridge for Skype",
},
{
header: "Options",
@ -117,7 +117,8 @@ async function run() {
const retData = {
success: false,
} as IRetData;
const [username, password] = str.split(/ (.+)/, 2);
const TOKENS_TO_EXTRACT = 2;
const [username, password] = str.split(/ (.+)/, TOKENS_TO_EXTRACT);
const data: any = {
username,
password,
@ -128,7 +129,7 @@ async function run() {
data.state = client.getState;
await client.disconnect();
} catch (err) {
log.verbose("Failed to log in as new user, perhaps the password is worng?");
log.verbose("Failed to log in as new user, perhaps the password is wrong?");
log.silly(err);
retData.error = "Username or password wrong";
return retData;