diff options
author | 2022-10-25 10:41:38 -0400 | |
---|---|---|
committer | 2022-10-25 10:41:38 -0400 | |
commit | f0903dd15512972b913ab745f7c50bf7af7ab369 (patch) | |
tree | 119e03fcaeb92b9f835a7fc8529ac8ed3012da50 | |
parent | Remove comment, arg parse bug (diff) | |
parent | Parse all words instead of breaking (diff) |
Merge branch 'rules-fix' of https://github.com/python-discord/bot into rules-fix
-rw-r--r-- | bot/exts/info/information.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py index eb1983c07..bb06af0ab 100644 --- a/bot/exts/info/information.py +++ b/bot/exts/info/information.py @@ -546,9 +546,8 @@ class Information(Cog): try: rule_numbers.append(int(word)) except ValueError: - if (kw := word.lower()) not in keyword_to_rule_number: - break - keywords.append(kw) + if (kw := word.lower()) in keyword_to_rule_number: + keywords.append(kw) if not rule_numbers and not keywords: # Neither rules nor keywords were submitted. Return the default description. |