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
Open
@ZXGuesser

Description

@ZXGuesser

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;
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0