42wim / matterircd

Connect to your mattermost or slack using your IRC-client of choice.
MIT License
294 stars 60 forks source link

Return ERR_NOTREGISTERED when trying to join before registration #434

Closed Peter4825 closed 3 years ago

Peter4825 commented 3 years ago

Newer versions of the IRC protocol support a message called CAP to negotiate capabilities, what the server can and cannot do

In order to implement this properly, the newest version of irssi (currently unreleased) sends out a JOIN command in order to see if the server has properly replied to the CAP message or not.

Since matterircd is the only ircd not responding with an error to this join message, irssi cannot connect to matterircd anymore. Instead the connection times out.

This patch fixes this by ensuring the join message returns an error if tried before the registration is complete

42wim commented 3 years ago

Thanks!