Skip to content

Conversation

@dgw
Copy link
Member

@dgw dgw commented Oct 13, 2022

Description

An IRC command/event such as 'AWAY' with no message, or 'PING', will have an empty args list.

Documentation for the (Pre)Trigger text attribute says that it will contain the last item in args if the line does not contain ':', but it previously—erroneously—contained the command name in such cases.

Checklist

  • I have read CONTRIBUTING.md
  • I can and do license this contribution under the EFLv2
  • No issues are reported by make qa (runs make quality and make test)
  • I have tested the functionality of the things this change touches

Notes

Starting this as a draft because it's built on top of #2359. Whether I separate the histories or not, I'll have to faff with something after merging one before the other can be merged. Would rather have the simplest rebase imaginable (which this strategy will get me) than a rebase that requires the interactive mode.

Same as the parent PR, 'Breaking Change' label because fixing this after so long could cause a spacebar heating incident.

An IRC command/event such as 'AWAY' with no message, or 'PING', will
have an empty `args` list. Documentation for the (Pre)Trigger `text`
attribute says that it will contain the last item in `args` if the line
does not contain ':', but it previously contained the command name in
such cases.
@dgw dgw added Bugfix Generally, PRs that reference (and fix) one or more issue(s) Breaking Change Stuff that probably should be mentioned in a migration guide labels Oct 13, 2022
@dgw dgw added this to the 8.0.0 milestone Oct 13, 2022
@dgw dgw requested a review from a team October 13, 2022 20:09
@dgw
Copy link
Member Author

dgw commented Oct 13, 2022

(I just pushed to the wrong branch, but that's OK. It'll be something I can force-push after #2359 gets merged, to make GH realize what is actually part of the PR.)

@dgw dgw force-pushed the trigger.text-empty-args branch from c6da926 to 93c2e88 Compare October 14, 2022 11:45
@dgw dgw marked this pull request as ready for review October 14, 2022 11:46
@dgw dgw merged commit 632896c into master Oct 16, 2022
@dgw dgw deleted the trigger.text-empty-args branch October 16, 2022 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Breaking Change Stuff that probably should be mentioned in a migration guide Bugfix Generally, PRs that reference (and fix) one or more issue(s) Core/IRC Protocol Handling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants