diff --git a/evennia/prototypes/prototypes.py b/evennia/prototypes/prototypes.py index de8d775054..72ae14154a 100644 --- a/evennia/prototypes/prototypes.py +++ b/evennia/prototypes/prototypes.py @@ -516,6 +516,10 @@ def search_prototype(key=None, tags=None, require_single=False, return_iterators be found as a match. """ + # prototype keys are always in lowecase + if key: + key = key.lower() + # search module prototypes mod_matches = {} diff --git a/evennia/prototypes/tests.py b/evennia/prototypes/tests.py index 7b83ff2dff..40560c3fd8 100644 --- a/evennia/prototypes/tests.py +++ b/evennia/prototypes/tests.py @@ -335,6 +335,8 @@ class TestProtLib(EvenniaTest): self.assertTrue(match) match = protlib.search_prototype(self.prot["prototype_key"]) self.assertEqual(match, [self.prot]) + match = protlib.search_prototype(self.prot["prototype_key"].upper()) + self.assertEqual(match, [self.prot]) class TestProtFuncs(EvenniaTest):