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

PircListener.java: when we react onPrivateMessage()… #216

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

jimklimov
Copy link
Contributor

…make sure the sender is assigned a channel in the UserChannelDao cache [JENKINS-72587]

Per https://issues.jenkins.io/browse/JENKINS-72587 we currently can not send replies to private messages. Older issues suggest it was possible, so maybe a regression of pircbot library update over time.

In this PR, when we receive a private message, we add a channel (if missing) to UserChannelDao cache of channels, so it can be discovered later to direct the response to.

Testing done

Succeeded with local Jenkins instance and Libera IRC servers.

Submitter checklist

Preview Give feedback

…nder is assigned a channel in the UserChannelDao cache [JENKINS-72587]

Signed-off-by: Jim Klimov <jimklimov+jenkinsci@gmail.com>
@jimklimov jimklimov requested a review from a team as a code owner January 22, 2024 23:10
@jimklimov jimklimov added java Pull requests that update Java code enhancement labels Jan 22, 2024
@jimklimov jimklimov merged commit 40cc686 into jenkinsci:master Jan 22, 2024
14 checks passed
@jimklimov jimklimov deleted the JENKINS-72587 branch January 22, 2024 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant