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

Fix double connect event when using SSL #341

Closed
wants to merge 1 commit into from

Conversation

saltire
Copy link

@saltire saltire commented Apr 2, 2015

Hey, I noticed that whenever I tried to connect securely to OFTC, the client would crash with a 462 ERR_ALREADYREGISTRED. The client seemed to be sending NICK/USER commands twice, but only when SSL was enabled.

My quick fix is to move the regular 'connect' listener so it only gets added when the 'secure' option is false. It seems to work, though I'm still not 100% sure if it will have other consequences.

Submitted for your perusal. Thanks!

@jirwin
Copy link
Collaborator

jirwin commented Apr 15, 2015

Thanks for finding this. I incorporated this fix in #333. Closing this.

@jirwin jirwin closed this Apr 15, 2015
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