From eb029f8d0241449d64e237a1d689200a0a741b72 Mon Sep 17 00:00:00 2001 From: troido Date: Wed, 16 Oct 2019 00:19:03 +0200 Subject: notifications are now passed though listen instead of events --- asciifarm/client/gameclient.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/asciifarm/client/gameclient.py b/asciifarm/client/gameclient.py index 4013505..c0f702c 100644 --- a/asciifarm/client/gameclient.py +++ b/asciifarm/client/gameclient.py @@ -129,7 +129,8 @@ class Client: if msgType == "ground": self.display.setGround(msg[1]) if msgType == "message": - self.log(*msg[1:]) + type, text = msg[1][:2] + self.log(text, type) if msgType == "options": if msg[1] != None: description, options = msg[1] -- cgit