-
Notifications
You must be signed in to change notification settings - Fork 63
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
Strip ZNC Server when Resolving Nickname #220
Conversation
Thanks for the PR! Can you please run with debug logging and share your log file? I'd like to see what is actually received over the wire. You can run with RUST_LOG=debug env var and find the log file at ~/. local/share/halloy.log |
Certainly! I think something may be misconfigured on my end though? I ran Halloy via |
Thanks! When running from CLI in debug mode (no --release) we only output logs to terminal :) |
@andymandias Apologies, we need |
No problem :) trace level log: halloy.log |
Thanks! Ok so based on the logs, there isn't a problem with ZNC or how it sends stuff / how we handle it. We receive a
This lead me to believe that So the real fix here is correct username parsing to handle |
Excellent! I believe |
Thanks for diving into this! Can you please try #222? If fixed, we can close this. I've added you as co-author on that commit :) |
When connecting using a ZNC style 'username/server' username, no channels appear in the sidebar despite channels being configured both in Halloy and on the ZNC server. I believe this is because comparisons against the user's username are failing, since the servers connected via ZNC report just 'username'; e.g. if I'm connected to irc.libera.chat then my ZNC username is 'andymandias/libera', but JOIN reports 'andymandias' has joined a channel and is not recognized as mine.
This change is to strip the server portion of the username such that the failing checks correctly resolve as true, while not interfering with non-ZNC users nor with the ZNC login. Doing so when setting resolved_nick in the client was the best place I could find for that, and it has been working for me in testing so far (testing with a regular username as well as a 'username/server' username).