Open d3xt3r01 opened 1 year ago
Hey, the sasl plugin (core/sasl.py) handles the authentication flow by sending AUTHENTICATE once it receives the CAP ACK. Can you provide logs showing the behavior you experienced with it not sending sasl properly?
All of the other issues appear to be symptoms rather than the cause. I'm submitting some changes to fix the mode issues
It all started with seeing that the bot authorizes after connecting... even when using SASL.
1) So, digging I saw it does "CAP REQ" for each capability, one by one... why not all at once? More digging made me see that CAP END is sent immediately instead of doing it after sasl. If no sasl, I don't want it to connect anyway... this can and should be improved.
2) [ERROR] Error in hook core.chan_track:on_mode AttributeError: 'NoneType' object has no attribute 'type' for https://github.com/TotallyNotRobots/CloudBot/blob/main/cloudbot/util/irc.py#L49
3) Also the HASTEBIN_SERVER is a redirect and all sorts of errors show up for /documents...
I'm not a coder, I'm sure I did something wrong but oh well..
Here are my changes: