irc client example doesn't handle JOIN responses from libera.chat · Issue #21 · spectrumero/spectranet · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
}
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: