diff --git a/templates.py b/templates.py index 643a38b..099d673 100644 --- a/templates.py +++ b/templates.py @@ -9,6 +9,8 @@ MUMBLE_URL = os.getenv('MUMBLE_BOT_MUMBLE_URL') def fmt_list(users: Set[str], bold=True): if bold: users = [f'*{user}*' for user in users] + else: + users = list(users) if len(users) == 1: return users[0] return ', '.join(users[:-1]) + f' and {users[-1]}'