diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 93c2b1f..5caf041 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -2267,8 +2267,11 @@ def leave_game(cli, nick, chan, rest): if var.get_role(nick) != "person" and var.ROLE_REVEAL: role = var.get_reveal_role(nick) an = "n" if role[0] in ("a", "e", "i", "o", "u") else "" - lmsg = random.choice(var.QUIT_MESSAGES).format(nick, an, var.get_reveal_role(nick), population) - cli.msg(botconfig.CHANNEL, lmsg) + if var.DYNQUIT_DURING_GAME: + lmsg = random.choice(var.QUIT_MESSAGES).format(nick, an, var.get_reveal_role(nick), population) + cli.msg(botconfig.CHANNEL, lmsg) + else: + cli.msg(botconfig.CHANNEL, ("\02{0}\02, a \02{1}\02, has died of an unknown disease.{2}").format(nick, var.get_reveal_role(nick), population)) var.LOGGER.logMessage(("{0}, a {1}, has died of an unknown disease.").format(nick, var.get_reveal_role(nick))) else: lmsg = random.choice(var.QUIT_MESSAGES_NO_REVEAL).format(nick, population) diff --git a/settings/wolfgame.py b/settings/wolfgame.py index 78188a2..ac7c5b4 100644 --- a/settings/wolfgame.py +++ b/settings/wolfgame.py @@ -44,6 +44,8 @@ IDLE_STASIS_PENALTY = 1 PART_STASIS_PENALTY = 1 QUIET_DEAD_PLAYERS = False +DYNQUIT_DURING_GAME = False # are dynamic quit messages used while a game is in progress? Note that true will break certain stats scrapers + GOAT_HERDER = True ABSTAIN_ENABLED = True # whether village can !abstain in order to not vote anyone during day