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

Store channel keys #1003

Merged
merged 1 commit into from
Apr 1, 2017
Merged

Store channel keys #1003

merged 1 commit into from
Apr 1, 2017

Conversation

xPaw
Copy link
Member

@xPaw xPaw commented Apr 1, 2017

Fixes #412 and supercedes #715. This PR gets channel key from channel mode, instead of hooking join command.

cc @spookhurb, @DanielOaks

@xPaw xPaw added the Type: Feature Tickets that describe a desired feature or PRs that add them to the project. label Apr 1, 2017
@xPaw xPaw added this to the 2.3.0 milestone Apr 1, 2017
@xPaw xPaw mentioned this pull request Apr 1, 2017
@astorije astorije self-assigned this Apr 1, 2017
@astorije
Copy link
Member

astorije commented Apr 1, 2017

Just like the parser PR, I think the commit author should be @spookhurb :)

@astorije astorije added the Type: Security Security concern or PRs that must be reviewed with extra care regarding security. label Apr 1, 2017
@xPaw
Copy link
Member Author

xPaw commented Apr 1, 2017

I didn't re-use his code (besides test), and it uses a different approach.

Copy link
Member

@astorije astorije left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment, apart from that all good!

}

for (var i = 0; i < data.modes.length; i++) {
var mode = data.modes[i];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a minor nitpick, but any reason why not to use data.modes.forEach(mode => { ... }); instead?
Also, const when possible?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@astorije astorije merged commit 1b32bf6 into master Apr 1, 2017
@astorije astorije deleted the channel-keys branch April 1, 2017 19:35
matburnham pushed a commit to matburnham/lounge that referenced this pull request Sep 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Tickets that describe a desired feature or PRs that add them to the project. Type: Security Security concern or PRs that must be reviewed with extra care regarding security.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants