Make $an funcparser fun understand capitalized vowels

This commit is contained in:
Griatch 2023-01-21 22:53:47 +01:00
parent 1ee104031c
commit fbb2e882e4
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,10 @@
# Changelog
## Main
- Bug fix: $an() inlinefunc didn't understand to use 'an' words starting with a
capital vowel
## Evennia 1.1.1
- Bug fix: Better handler malformed alias-regex given to nickhandler. A

View file

@ -48,7 +48,6 @@ import inspect
import random
from django.conf import settings
from evennia.utils import logger, search
from evennia.utils.utils import (
callables_from_module,
@ -706,7 +705,7 @@ def funcparser_callable_an(*args, **kwargs):
if not args:
return ""
item = str(args[0])
if item and item[0] in "aeiouy":
if item and item[0] in "aeiouyAEIOUY":
return f"an {item}"
return f"a {item}"