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 ircStatusNotices when channels are not lowercase #219

Merged
merged 1 commit into from
Apr 14, 2017

Conversation

Throne3d
Copy link
Collaborator

Should fix #216, by lowercasing the channel name when it receives each event. This also adds debug messages to make it easier to see when the bot is actually receiving (and presumably processing) these events.

(When I tested it with the #NovaMC channel, it did in fact crash on master but did not on this branch.)

The added tests fail on master – the first, obviously, because master is not trying to lowercase the channel name, and the second reproduces this particular example with fake events, demonstrating the actual failure of the old code.

It may still be useful to merge #218, in case there are other circumstances that could produce this (such as a race condition for the events, which I think is possible though maybe not likely).

Should fix reactiflux#216, by lowercasing the channel name when
it receives each event. This also adds debug messages
to make it easier to see when the bot is actually
receiving (and presumably processing) these events.
@Throne3d Throne3d added the bug label Apr 13, 2017
@Throne3d Throne3d self-assigned this Apr 13, 2017
@coveralls
Copy link

coveralls commented Apr 13, 2017

Coverage Status

Coverage increased (+0.07%) to 98.291% when pulling de448ea on Throne3d:fix/statuses-casing into 884f0ca on reactiflux:master.

@ekmartin
Copy link
Member

Good catch - thanks.

@ekmartin ekmartin merged commit 4d238d9 into reactiflux:master Apr 14, 2017
@Throne3d Throne3d deleted the fix/statuses-casing branch April 14, 2017 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bot crashes when user leaves on IRC
3 participants