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
getChannels and ircClient.channels lists redundant entries upon multiple join calls #130
Comments
@itsatony, I'm trying to reproduce this issue right now and I can't replicate it. Are you using client.getChannels() to get the current channels ? If you could post your code that is causing this issue it would be very helpful. Thank you! |
I will close this issue, feel free to comment here if you are still experiencing this issue. |
sorry, forgot to answer.
this can be repeated endlessly... then, when parting the channel, it's still in the list.. multiple times potentially. also, upon disconnect the channels array still has all channels listed. my basic problem is, that the channels list feels like a list of join+part commands rather than a list of channels that the client is actually in. |
btw.. it seems like a weird approach, but what i basically do to at least guarantee the uniqueness of the array is this:
|
Thanks I will try to replicate this, if you have something like a simple script to replicate it I would really appreciate it. Not gonna lie, I'm a bit busy lately, so it might take some time. I don't use Set, Map, WeakMap, etc.. in this module because I don't want to have to use a ton of polyfills.. as far as I know these are not compatible with IE and Safari Reopening your issue 😄 |
Actual behaviour:
the .channels array of the ircClient lists non-unique entries.
apparently, sending multiple joins for the same channel-name leads to multiple entries in the array.
Expected behaviour:
a list of unique, actually joined, channels.
Error log:
Server configuration
ubuntu 14.04 lts
4.4.3
2.15.1
0.0.29
The text was updated successfully, but these errors were encountered: