From 67e222ca2e7602584789928b8b8e072544ca5a9a Mon Sep 17 00:00:00 2001 From: troido Date: Tue, 24 Sep 2019 22:57:37 +0200 Subject: improved communication handling on the server --- asciifarm/client/gameclient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asciifarm/client/gameclient.py b/asciifarm/client/gameclient.py index d9d0c89..3cd2050 100644 --- a/asciifarm/client/gameclient.py +++ b/asciifarm/client/gameclient.py @@ -79,9 +79,9 @@ class Client: self.close("error: name is already taken") return if error == "invalidname": - self.close("error: "+ msg[2]) + self.close("Invalid name error: "+ msg[2:]) return - self.log(error) + self.log(" ".join(msg[1:])) if msgType == 'field': field = msg[1] fieldWidth = field['width'] -- cgit