.BANCHO. .FIX. Fix spectator chat

This commit is contained in:
Nyo 2016-10-07 14:13:42 +02:00
parent 847a955e2f
commit 927621cfcd
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ def partChannel(userID = 0, channel = "", token = None, toIRC = True, kick = Fal
if token.spectating is None:
s = userID
else:
s = token.spectating.userID
s = token.spectatingUserID
channel = "#spect_{}".format(s)
elif channel == "#multiplayer":
channel = "#multi_{}".format(token.matchID)
@ -196,7 +196,7 @@ def sendMessage(fro = "", to = "", message = "", token = None, toIRC = True):
if token.spectating is None:
s = userID
else:
s = token.spectating.userID
s = token.spectatingUserID
to = "#spect_{}".format(s)
elif to == "#multiplayer":
to = "#multi_{}".format(token.matchID)