From b6910ef70d25898ffb787181a6d486283094068a Mon Sep 17 00:00:00 2001 From: troido Date: Sat, 4 Apr 2020 13:47:01 +0200 Subject: can receive multiple messages --- asciifarmclient/gameclient.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/asciifarmclient/gameclient.py b/asciifarmclient/gameclient.py index d677636..44219f2 100644 --- a/asciifarmclient/gameclient.py +++ b/asciifarmclient/gameclient.py @@ -131,6 +131,9 @@ class Client: if msgType == "message": type, text = msg[1][:2] self.log(text, type) + if msgType == "messages": + for type, text in msg[1]: + self.log(text, type) if msgType == "options": if msg[1] != None: description, options = msg[1] -- cgit