8000 irc client example doesn't handle JOIN responses from libera.chat · Issue #21 · spectrumero/spectranet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

irc client example doesn't handle JOIN responses from libera.chat #21

New issue

Have a question about this project? Sign up for a free GitHub account to ope 7EEB n 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

Open
ZXGuesser opened this issue Aug 3, 2022 · 0 comments
Open

Comments

@ZXGuesser
Copy link
Contributor

As reported here: https://spectrumcomputing.co.uk/forums/viewtopic.php?p=98334

libera.chat doesn't include a colon in the JOIN response (optional in the spec?) which makes the client drop the first character off the channel name it stores in memory.

The following ugly hack in ircsvrmsg.c cures it

	if(!strcmp(im->command, "JOIN"))
	{
		if (im->param[0] == ':') /* this is a horrible hack, de we need to check for optional : everywhere? */
			strlcpy(chan, (im->param)+1, CHANSZ);
		else
			strlcpy(chan, im->param, CHANSZ);
		setStatusLine(nick, chan);
		return;
	}
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

No branches or pull requests

1 participant
0