Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update helpers.js #369

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/clientapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ new Irc.Client({
});
~~~

##### Configuration
Small clarification regarding SASL: to disable it completely, do not remove the entire `account { account: '', password: '' }` section, as it is still checked if the PASS exists even if it should not be used for SASL. To disable SASL, simply leave `account { }` and remove the 'account' and 'password' inside.


#### Properties
##### `.connected`
Expand Down
6 changes: 4 additions & 2 deletions src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
let user = '';
let host = '';

const sep1 = mask.indexOf('!');
const sep2 = mask.indexOf('@');
//const sep1 = mask.indexOf('!');

Check failure on line 20 in src/helpers.js

View workflow job for this annotation

GitHub Actions / build (14.x)

Expected space or tab after '//' in comment

Check failure on line 20 in src/helpers.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Expected space or tab after '//' in comment

Check failure on line 20 in src/helpers.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Expected space or tab after '//' in comment

Check failure on line 20 in src/helpers.js

View workflow job for this annotation

GitHub Actions / build (19.x)

Expected space or tab after '//' in comment
const sep1 = (mask || '').indexOf('!');
//const sep2 = mask.indexOf('@');

Check failure on line 22 in src/helpers.js

View workflow job for this annotation

GitHub Actions / build (14.x)

Expected space or tab after '//' in comment

Check failure on line 22 in src/helpers.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Expected space or tab after '//' in comment

Check failure on line 22 in src/helpers.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Expected space or tab after '//' in comment

Check failure on line 22 in src/helpers.js

View workflow job for this annotation

GitHub Actions / build (19.x)

Expected space or tab after '//' in comment
const sep2 = (mask || '').indexOf('@');

if (sep1 === -1 && sep2 === -1) {
// something
Expand Down
Loading