Skip to content

Commit

Permalink
map prefixes to str.lower
Browse files Browse the repository at this point in the history
Co-authored-by: nulldomain <[email protected]>
  • Loading branch information
luanalatte and null-domain authored Oct 16, 2023
1 parent 26f5634 commit c9ee43b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightbulb/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ async def get_prefix_context(
message = event.message.content
if self._case_insensitive_prefixes:
message = message.lower()
prefixes = [x.lower() for x in prefixes]
prefixes = map(str.lower, prefixes)

invoked_prefix = None
for prefix in prefixes:
Expand Down

0 comments on commit c9ee43b

Please sign in to comment.