Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timing of commands/joins sent on network connect #287

Closed
dgw opened this issue Apr 28, 2016 · 7 comments
Closed

Timing of commands/joins sent on network connect #287

dgw opened this issue Apr 28, 2016 · 7 comments
Labels
Type: Bug Issues that report and PRs that solve any defects that cause unexpected behaviors.

Comments

@dgw
Copy link
Contributor

dgw commented Apr 28, 2016

As seen in erming/shout#662, there is a possible issue with using the commands setting on a network to, for example, identify with NickServ before joining channels requiring identification.

Splitting the commands into pre- and post-join sections might be overkill, but there's probably a way to sort this such that commands that the user wants run before joining are, in fact, run before any join commands are sent.

Thoughts?

@xPaw
Copy link
Member

xPaw commented Apr 28, 2016

I don't think we can guarantee order anyhow.

For nickserv passwords, most servers support putting it in the server password. We also support SASL now, so that's even less of a problem.

@dgw
Copy link
Contributor Author

dgw commented Apr 28, 2016

This is actually something I struggle with using ZNC, too. It has a tendency to join channels before my vhost is applied.

@maxpoulin64
Copy link
Member

The solution indeed is SASL. There's no other way to know for sure if there will be a race condition or not. SASL happens on the registration phase, so it guarantees you're logged in before you even enter the network. This also makes any vhost applied.

@xPaw: I can't find the SASL support. How is it enabled? I looked at both our source and the irc-fw source and can't find how it would be automatically enabled given the parameters we send. Testing also shows SASL isn't attempted. Only the server password forwarding seems to work for now, which is unreliable because it just sends a PRIVMSG behind the scenes and doesn't block the registration process.

@dgw: use the sasl module from ZNC

@dgw
Copy link
Contributor Author

dgw commented Apr 28, 2016

Not all networks support SASL…

@maxpoulin64
Copy link
Member

@dgw: There's also a nickserv ZNC module that actually waits for NickServ to reply before continuing, which works beautifully on that one poorly administrated network that doesn't support SASL.

@dgw
Copy link
Contributor Author

dgw commented Apr 28, 2016

I use that module, and it does not wait before joining anything. But let's not focus on this one single use case.

@xPaw
Copy link
Member

xPaw commented May 16, 2016

This issue could also possibly be caused by this (which was removed): da425fe#diff-cf27c1d543e886c89cd9ac8b8aeaf05bL245

@xPaw xPaw closed this as completed Oct 16, 2016
@astorije astorije added the Type: Bug Issues that report and PRs that solve any defects that cause unexpected behaviors. label Oct 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issues that report and PRs that solve any defects that cause unexpected behaviors.
Projects
None yet
Development

No branches or pull requests

4 participants