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 IRC RC feed #375

Closed
wants to merge 1 commit into from
Closed

Conversation

cdhowie
Copy link

@cdhowie cdhowie commented Nov 4, 2024

This works around an incompatibility between libirc and the new IRC RC server implementation. The new RC server only sends one parameter with the MYINFO command; libirc expects 4, or it won't autojoin. This patch has Huggle take care of sending the join after seeing MYINFO, regardless of the number of arguments.

This works around an incompatibility between libirc and the new IRC RC
server implementation.
@benapetr
Copy link
Member

benapetr commented Nov 4, 2024

Hello, @cdhowie thanks for report, I have decided to instead fix this bug in the underlying library: grumpy-irc/libirc@92b8407 so that we don't need to fix this with a workaround :)

@benapetr benapetr closed this Nov 4, 2024
@cdhowie
Copy link
Author

cdhowie commented Nov 4, 2024

@benapetr Funny, that commit is identical to one I made on libirc to fix the issue but didn't realize that Huggle and libirc shared authors. I figured a workaround would be faster than trying to get a fix into a "third party" library quickly. Guess it's not really a third party library. :)

@benapetr
Copy link
Member

benapetr commented Nov 5, 2024

@cdhowie technically from huggle's perspective it is 3rd, from my personal, not so much. But still probably it's cleaner to at least submit a PR for a fix in the upstream while making a workaround.

Anyway how big problem is this issue, I don't really use Huggle myself that much, but was there any recent change in the IRC server wikimedia uses? Did the IRC feed stop working entirely? If yes, I think this would justify a release.

@cdhowie
Copy link
Author

cdhowie commented Nov 5, 2024

@benapetr There was indeed a change to the IRC RC server implementation. Yes, the IRC feed is completely broken in Huggle without this patch.

paravoid added a commit to paravoid/ircstream that referenced this pull request Nov 6, 2024
Respond to MYINFO with four distinct parameters, not one with all
parameters concatenated.

This was breaking Huggle, per phab:T378667, also see
huggle/huggle3-qt-lx#375. It was worked around since, but this was an
ircstream bug that had to be fixed anyway.
@paravoid
Copy link

paravoid commented Nov 7, 2024

As you all suspected, this was indeed a bug in the server. I just fixed it and released v1.0.1. Hopefully the WMF folks will update irc.wikimedia.org to it soon!

I'd appreciate testing Huggle & GrumpyIrc against v1.0.1 even before that. BTW, if we could find a way to include Huggle in ircstream's test suite that'd be amazing too! Suggestions and/or PRs more than welcome 😄

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