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

Added optional callbacks to connect and disconnect #44

Merged
merged 4 commits into from
Oct 27, 2011
Merged

Added optional callbacks to connect and disconnect #44

merged 4 commits into from
Oct 27, 2011

Conversation

fent
Copy link
Contributor

@fent fent commented Oct 27, 2011

Okay, this pull request is just for this feature, and not the toLowerCase() channel issue.

Some people might find this useful if they want to use callbacks instead of emitters.

connect(retryCount, callback)

disconnect(mesage, callback)

Both arguments are still optional and if the first argument is a function, it will be treated as the callback.

Oh, and I also cleaned up a bit of the code in join and part.

@martynsmith
Copy link
Owner

This commit doesn't apply cleanly (I think you need to pull to get the changed documentation format).

I'm going to go manually merge it. Also, I'm going to apply the logic I pointed out in #28 (comment) (because I just think it's much more clear what's going on).

@martynsmith martynsmith merged commit 7c37a55 into martynsmith:master Oct 27, 2011
Half-Shot referenced this pull request in matrix-org/node-irc Feb 23, 2019
….0.0

[Doppins] Upgrade dependency mocha to ^4.0.0
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