diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 7dc267f..9dff628 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -5499,10 +5499,13 @@ def start(cli, nick, chan, forced = False): var.PLAYERS = {plr:dict(var.USERS[plr]) for plr in pl if plr in var.USERS} - debuglog("ROLES:", " | ".join("\u0002{0}\u0002: {1}".format(role, ", ".join(players)) + debuglog("ROLES:", " | ".join("{0}: {1}".format(role, ", ".join(players)) for role, players in sorted(var.ROLES.items()) if players and role not in var.TEMPLATE_RESTRICTIONS.keys())) - debuglog("TEMPLATES:", " | ".join("\u0002{0}\u0002: {1}".format(tmplt, ", ".join(players)) - for tmplt, players in sorted(var.ROLES.items()) if players and role in var.TEMPLATE_RESTRICTIONS.keys())) + templates = " | ".join("{0}: {1}".format(tmplt, ", ".join(players)) + for tmplt, players in sorted(var.ROLES.items()) if players and tmplt in var.TEMPLATE_RESTRICTIONS.keys()) + if not templates: + templates = "None" + debuglog("TEMPLATES:", templates) var.FIRST_NIGHT = True if not var.START_WITH_DAY: diff --git a/tools/__init__.py b/tools/__init__.py index bfc8047..02f264f 100644 --- a/tools/__init__.py +++ b/tools/__init__.py @@ -23,7 +23,7 @@ def logger(file, write=True, display=True): if file is not None: open(file, "a").close() # create the file if it doesn't exist def log(*output, write=write, display=display): - output = " ".join([str(x) for x in output]) + output = " ".join([str(x) for x in output]).replace("\u0002", "").replace("\x02", "") # remove bold if botconfig.DEBUG_MODE: write = True if botconfig.DEBUG_MODE or botconfig.VERBOSE_MODE: