Fix wolves getting other people's messages.

This commit is contained in:
Vgr E.Barry 2015-02-26 12:50:20 -05:00
parent 079e13d10d
commit 5e0e022bc3

View File

@ -4968,7 +4968,7 @@ def relay(cli, nick, chan, rest):
return
if var.PHASE not in ("night", "day"):
return
if nick in var.list_players() and var.get_role(nick) in var.WOLFCHAT_ROLES:
if rest.startswith("\01ACTION"):
rest = rest[7:-1]
wolfchat(cli, nick, "\02{0}\02{1}".format(nick, rest))