Fixed an error in random_string_from_module that was introduced last update.

This commit is contained in:
Griatch 2014-04-07 08:07:52 +02:00
parent 803af4307b
commit 37a1d86659
2 changed files with 76 additions and 59 deletions

View file

@ -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):