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

loader: drop compatibility code for old-style Phenny/Jenni modules #2126

Merged
merged 1 commit into from
Jul 7, 2021

Conversation

dgw
Copy link
Member

@dgw dgw commented Jun 28, 2021

Description

Way back, before the plugin (or module) decorators were a thing, "modules" of the time were written by directly assigning attributes of each callable to add the required properties for the bot's loader.

We don't support that any more. Code like that is probably five or more years old at minimum, and should be updated.

Also drops related tests, of course.

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

Did I think about raising some kind of warning instead of silently correcting the values as Sopel 7.x and earlier have been doing? Yes. I decided against it, because that would just replace one kind of legacy fallback mode with another. Rip off the band-aid.

Way back, before the `plugin` (or `module`) decorators were a thing,
"modules" of the time were written by directly assigning attributes of
each callable to add the required properties for the bot's loader.

We don't support that any more. Code like that is probably five or more
years old *at minimum*, and should be updated.

Also drops related tests, of course.
@dgw dgw added Low Priority Tweak Tests Breaking Change Stuff that probably should be mentioned in a migration guide labels Jun 28, 2021
@dgw dgw added this to the 8.0.0 milestone Jun 28, 2021
@dgw dgw requested a review from a team June 28, 2021 06:08
@dgw dgw added the Housekeeping Code cleanup, removal of deprecated stuff, etc. label Jul 5, 2021
@dgw dgw merged commit ab59a36 into master Jul 7, 2021
@dgw dgw deleted the loader-drop-phenny-jenni-compat branch July 7, 2021 06:51
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 Housekeeping Code cleanup, removal of deprecated stuff, etc. Low Priority Tests Tweak
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants