diff options
| author | troido <troido@protonmail.com> | 2020-04-04 13:47:01 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-04 13:47:01 +0200 |
| commit | b6910ef70d25898ffb787181a6d486283094068a (patch) | |
| tree | 24ae72cc4c46a0ea2c99f6dbf565a69f7911d6de /asciifarmclient | |
| parent | 09cf076ab48d79f6c4bbcd6d1f606e1747d5da6b (diff) | |
can receive multiple messages
Diffstat (limited to 'asciifarmclient')
| -rw-r--r-- | asciifarmclient/gameclient.py | 3 |
1 files changed, 3 insertions, 0 deletions
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] |
