!myrole: remind shamans of their totem

This is especially useful if the shaman did not see the original message
informing them of their role (e.g. due to connection issues).
This commit is contained in:
Janik Kleinhoff 2014-09-17 20:48:04 +02:00
parent 4de6899209
commit bae19598cb

View File

@ -5478,6 +5478,9 @@ def myrole(cli, nick, chan, rest):
an = "n" if role[0] in ("a", "e", "i", "o", "u") else ""
pm(cli, nick, "You are a{0} \02{1}{2}\02.".format(an, role, " assassin" if nick in var.ROLES["assassin"] and nick not in var.ROLES["amnesiac"] else ""))
if role == "shaman" and nick not in var.SHAMANS:
pm(cli, nick, "You have the \u0002{0}\u0002 totem.".format(var.TOTEMS[nick]))
# Check for gun/bullets
if nick not in ps:
return