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

Set correct IRC PRIVMSG nick when receiving direct messages #407

Merged
merged 1 commit into from
Mar 6, 2021

Conversation

the-real-ed
Copy link
Contributor

@the-real-ed the-real-ed commented Mar 2, 2021

Currently the code creates the following IRC raw message (direct message sent from "buddy", to "me"):

:buddy!buddy@https://chat.example.com PRIVMSG buddy :hi

However, according to the IRC spec rfc1459 4.4.1 (https://tools.ietf.org/html/rfc1459), direct messages should have my username set as the receiver.
i.e.

:buddy!buddy@https://chat.example.com PRIVMSG me :hi

Fixes: #406

This code has been tested and confirmed to be working on v0.23

Thanks to @hloeung for helping verify the patch works.

Currently the code creates the following IRC raw message (direct
message sent from "buddy", to "me"):
:buddy!buddy@https://chat.example.com PRIVMSG buddy :hi

However, according to the IRC spec rfc1459 4.4.1
(https://tools.ietf.org/html/rfc1459), direct messages should have my
username set as the receiver.

i.e.
:buddy!buddy@https://chat.example.com PRIVMSG me :hi

Fixes: 42wim#406
@guilhermepiccoli
Copy link
Contributor

I've just tested that, and it is working fine - it seems to fix an old issue with ZNC I'm facing (see issue #296 ).
Thanks a lot @the-real-ed

@hrasiq
Copy link

hrasiq commented Mar 5, 2021

Thank you so much for the patch, @the-real-ed!
I've tested it locally, and it seems to have resolved some longstanding issues I had with private messages (similar to #296 as mentioned by @guilhermepiccoli).

@42wim
Copy link
Owner

42wim commented Mar 6, 2021

Thank you for this fix @the-real-ed and the rest for testing :)

@42wim 42wim modified the milestones: 0.23.1, 0.23.2 Mar 6, 2021
@42wim 42wim merged commit eb95fb0 into 42wim:master Mar 6, 2021
@42wim 42wim modified the milestones: 0.23.2, 0.24.0 Mar 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Direct messages received set wrong user in IRC PRIVMSG
4 participants