diff --git a/modules/wolfgame.py b/modules/wolfgame.py index a26678c..9c643ad 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -2265,7 +2265,9 @@ def leave_game(cli, nick, chan, rest): cli.notice(nick, "You're not currently playing.") return if var.get_role(nick) != "person" and var.ROLE_REVEAL: - lmsg = random.choice(var.QUIT_MESSAGES_RROLE).format(nick, var.get_reveal_role(nick), population) + role = var.get_reveal_role(nick) + an = "n" if role[0] in ("a", "e", "i", "o", "u") else "" + lmsg = random.choice(var.QUIT_MESSAGES_RROLE).format(nick, an, var.get_reveal_role(nick), population) cli.msg(botconfig.CHANNEL, lmsg) var.LOGGER.logMessage(("{0}, a {1}, has died of an unknown disease.").format(nick, var.get_reveal_role(nick))) else: diff --git a/settings/wolfgame.py b/settings/wolfgame.py index c43f34a..9e7fe52 100644 --- a/settings/wolfgame.py +++ b/settings/wolfgame.py @@ -198,10 +198,10 @@ QUIT_MESSAGES = ("\u0002{0}\u0002 suddenly falls over dead before the astonished "A pack of wild animals sets upon \u0002{0}\u0002. Soon they are only a pile of bones and a lump in the beasts' stomaches.", "\u0002{0}\u0002 fell off the roof of their house and is now dead.", "\u0002{0}\u0002 is crushed to death by a falling tree. The villagers desperately try to save them, but it is too late.") -QUIT_MESSAGES_RROLE = ("\u0002{0}\u0002, a \u0002{1}\u0002, suddenly falls over dead before the astonished villagers.", - "A pack of wild animals sets upon \u0002{0}\u0002. Soon the \u0002{1}\u0002 is only a pile of bones and a lump in the beasts' stomaches.", - "\u0002{0}\u0002, a \u0002{1}\u0002, fell off the roof of their house and is now dead.", - "\u0002{0}\u0002 is crushed to death by a falling tree. The villagers desperately try to save the \u0002{1}\u0002, but it is too late.") +QUIT_MESSAGES_RROLE = ("\u0002{0}\u0002, a{1} \u0002{2}\u0002, suddenly falls over dead before the astonished villagers.", + "A pack of wild animals sets upon \u0002{0}\u0002. Soon the \u0002{2}\u0002 is only a pile of bones and a lump in the beasts' stomaches.", + "\u0002{0}\u0002, a{1} \u0002{2}\u0002, fell off the roof of their house and is now dead.", + "\u0002{0}\u0002 is crushed to death by a falling tree. The villagers desperately try to save the \u0002{2}\u0002, but it is too late.") import botconfig, fnmatch