From 927621cfcd92dde175e636607efd277183768b2f Mon Sep 17 00:00:00 2001 From: Nyo Date: Fri, 7 Oct 2016 14:13:42 +0200 Subject: [PATCH] .BANCHO. .FIX. Fix spectator chat --- helpers/chatHelper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/chatHelper.py b/helpers/chatHelper.py index c9f913b..cd0986c 100644 --- a/helpers/chatHelper.py +++ b/helpers/chatHelper.py @@ -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)