Commit 277c475
plugins: support multiple
I'll be the first to admit, this doesn't actually *change* the built-in
plugins that are enumerated. But that was also the point: It *should*
give the same list as before.
Doing this is all about code hygiene. I just don't like blindly pulling
the `[0]`th element of a list and ignoring the rest, even if that list
only has a single entry. So the code to `find_internal_plugins()` now
accounts for the possibility that there could be multiple places it has
to search for those, and deduplicates the names found before trying to
load them.
Co-authored-by: Exirel <[email protected]>sopel.modules submodule search locations1 parent 5c24a97 commit 277c475
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| |||
0 commit comments