-
Notifications
You must be signed in to change notification settings - Fork 33
IRC#names issue #31
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
Comments
Yes, this is a bug. I didn't anticipate this scenario. The solution is to queue up |
Awesome! Thanks man. I feel bad for keep hitting you with this stuff. But the thought of it getting more solid is great! |
Hey man, not to put any pressure on you. I am just wondering if a patch for this will be anytime soon? I ask because the project I'm using this for, cannot move forward before I get this done. So if it's going to be a bit still, I'll restructure my stuff and code around this bug. Thanks. |
I had troubles with the "once" method combined with "names".. worked around it like this in irc.js: this.names = function( channel, hollaback ) {
} In essence I don't provide the callback here and I registered the NAMES callback separately. Seems to be a bit more robust since the names callback can fire unexpectedly sometimes (for example with dircproxy). |
Feel free to pull that from my repo if you feel like it. |
Hey, sorry, I am working on a refactor right now to allow me to really test the internals. As soon as that's done, I'll tackle this issue. |
I think there are a number of scenarios where once could cause this kind of problem, not just /names. One easy idea for fixing it is to instead of using the callback as the hash key: |
@meelash Unfortunately this won't solve the issue because we can't tell which |
I keep having this issue, and assumed it was my code. Then I kept reducing my code down further and further. Finally I used your example code from the docs. It worked without throwing the error.
However, when I put it in a loop, the error threw.
So this works:
But this code:
..throws this error..
Ideas?
The text was updated successfully, but these errors were encountered: