mirror of
https://github.com/evennia/evennia.git
synced 2026-03-24 00:36:30 +01:00
Fixed an error in random_string_from_module that was introduced last update.
This commit is contained in:
parent
803af4307b
commit
37a1d86659
2 changed files with 76 additions and 59 deletions
|
|
@ -843,7 +843,9 @@ def random_string_from_module(module):
|
|||
"""
|
||||
Returns a random global string from a module
|
||||
"""
|
||||
string = random.choice(string_from_module(module))
|
||||
string = string_from_module(module)
|
||||
if is_iter(string):
|
||||
string = random.choice(string)
|
||||
return string
|
||||
|
||||
def init_new_player(player):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue