-
Notifications
You must be signed in to change notification settings - Fork 175
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
Desyncronized nicklist #1263
Labels
Comments
This was referenced Jul 9, 2023
Autoclose was a bit aggressive there 🙃 |
jhoneycutt
added a commit
to jhoneycutt/glowing-bear
that referenced
this issue
Feb 2, 2024
This is fallout from glowing-bear#1244, which moved models.delNick from using a filter to using the delete operator. The delete operator creates a sparse array that has an empty slot for the item that was deleted. This empty slot is iterable with some constructs, giving a value of undefined. These unexpected undefined values in the nicklist cause exceptions to be thrown in some situations, like when calling models.updateNickSpeak. To fix this, use Array.splice to remove elements from the nicklist, instead of the delete operator.
I can reproduce this by joining my bot to a channel I am in, kicking it, then rejoining it. |
Created PR #1274 to fix this. |
Thank you so much! I think this will make quite a few people happy :) Merged! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've not diagnosed the root cause (sooooory) but since a few time I notice some nicklist discrepency:
Example:
notice there's many people in the room but only the op displayed. I bet it is displayed because he's the last one changing or connecting.
Using Firefox 114, weechat-headless 3.8-1.
The text was updated successfully, but these errors were encountered: