summaryrefslogtreecommitdiff
path: root/asciifarmclient
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-04-09 18:28:58 +0200
committertroido <troido@protonmail.com>2020-04-09 18:28:58 +0200
commitf02ff13c21cd105d833131fca2939a52cfb40385 (patch)
tree32e72986040162cc068e07bb690a1cb27df1f318 /asciifarmclient
parent4175c74cae6406fd93412f223d08ba04f8f61149 (diff)
properly log world messages
Diffstat (limited to 'asciifarmclient')
-rw-r--r--asciifarmclient/gameclient.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/asciifarmclient/gameclient.py b/asciifarmclient/gameclient.py
index edc3838..5f61c36 100644
--- a/asciifarmclient/gameclient.py
+++ b/asciifarmclient/gameclient.py
@@ -129,7 +129,7 @@ class Client:
if msgType == "ground":
self.display.setGround(msg[1])
if msgType == "message":
- type, text = msg[1][:2]
+ text, type = msg[1:3]
self.log(text, type)
if msgType == "messages":
for type, text in msg[1]: