Commit 18fd136
committed
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.sopel.modules submodule search locations1 parent 5c24a97 commit 18fd136
1 file changed
+8
-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 | + | |
| 77 | + | |
| 78 | + | |
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
| |||
0 commit comments