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(lib/irc): Use protected loops when iterating channels to remove users #187

Merged
merged 1 commit into from
May 29, 2014

Conversation

jirwin
Copy link
Collaborator

@jirwin jirwin commented Sep 6, 2013

Because we are iterating objects, we need to be sure that the property actually exists. Iterating the keys of the object accomplishes this.

Also because we are only iterating what we want, we can drop the type checks.

@jirwin
Copy link
Collaborator Author

jirwin commented Sep 6, 2013

This fixes the issue referenced in #172.

@martynsmith
Copy link
Owner

This looks reasonable, I just don't have time to merge and test it right now, but I'll endeavour to do that in the next day or so :-)

@jirwin
Copy link
Collaborator Author

jirwin commented Sep 9, 2013

Haha. Alright. I did run the test file(as well as the mocha tests), and those seemed to work. I'll admit I didn't try using this version with my bot. I'll try that and post back my results as well.

osslate pushed a commit that referenced this pull request May 29, 2014
fix(lib/irc): Use protected loops when iterating channels to remove users
@osslate osslate merged commit df8065b into martynsmith:master May 29, 2014
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.

3 participants