kiwiirc / irc-framework

🛠️ A better IRC framework for node.js. For bots and full clients.
MIT License
182 stars 64 forks source link

Clear enabled caps array on connection #343

Closed ItsOnlyBinary closed 1 year ago

ItsOnlyBinary commented 1 year ago

The server might have changed available caps or the client may request different caps since last connection, make sure we do not have stale list of enabled caps.

I found this issue by trying to connect with sasl and invalid password, then trying to connect without sasl. due to the sasl being negotiated on the first connect it was still in the enabled state on the second attempt even though it was not required, causing a connection timeout