Skip to content

Update ACC to latest spec#453

Merged
DanielOaks merged 4 commits intomasterfrom
master+acc-updates
Apr 8, 2019
Merged

Update ACC to latest spec#453
DanielOaks merged 4 commits intomasterfrom
master+acc-updates

Conversation

@DanielOaks
Copy link
Copy Markdown
Member

@DanielOaks DanielOaks commented Apr 8, 2019

Basically, I pretty much rewrote the original spec which defines the ACC command (update's over here). This changes things around so that it takes the right kind of replies, and sends the right kind of replies as well.

I'm gonna update the help text and do some more testing on this.

Copy link
Copy Markdown
Member

@slingamn slingamn left a comment

Choose a reason for hiding this comment

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

Awesome stuff!

Could you merge this: DanielOaks/irctest#26

and then update the integration tests to comply with the new spec? Or if you merge that PR, I could do it myself.

// sendSuccessfulSaslAuth means that a SASL auth attempt completed successfully, and is used to dispatch messages.
func sendSuccessfulSaslAuth(client *Client, rb *ResponseBuffer, forNS bool) {
// sendSuccessfulAccountAuth means that an account auth attempt completed successfully, and is used to dispatch messages.
func sendSuccessfulAccountAuth(client *Client, rb *ResponseBuffer, forNS, forSASL bool) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

forNS and forSASL are an XOR, right? Should this just be a single bool?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Mmm. I have thoughts about this. forSASL is sort of a dodgy name, it's basically trying to capture the case of 'for login' vs 'for ... um, not logging in, like registration?' since those are the two places we use that function. forSASL's just the easiest way to present it, so long as we assume that NS identify is also 'for sasl'.


if loginSuccessful {
sendSuccessfulSaslAuth(client, rb, true)
sendSuccessfulAccountAuth(client, rb, true, true)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

true, false? (Or should we reduce this to a single bool?)

@slingamn
Copy link
Copy Markdown
Member

slingamn commented Apr 8, 2019

Good to merge!

I filed DanielOaks/irctest#28 for the test updates; you can assign it to me, or take it yourself.

@DanielOaks
Copy link
Copy Markdown
Member Author

Whoo, awesome! Thanks for the review mate, much appreciated

@DanielOaks DanielOaks merged commit b11b34b into master Apr 8, 2019
@DanielOaks DanielOaks deleted the master+acc-updates branch April 8, 2019 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants