Skip to content

better error flows on failure to reattach #955

@slingamn

Description

@slingamn

@bogdomania was connecting to an always-on client using The Lounge. Since the browser-to-TL connection was plaintext, TL correctly did not send the secure flag with its WEBIRC command. This meant that the new client connection did not have modes.TLS, forbidding reattach:

https://github.com/oragono/oragono/blob/a83dc6e10dadf2815ca2ee5fbe8d30b31916957a/irc/client_lookup_set.go#L208

Since this cannot be corrected by sending a new NICK line, the error should be fatal in this case. In general, these cases should have better error messages even when a non-fatal 433 ERR_NICKNAMEINUSE is correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions