diff options
| author | troido <troido@protonmail.com> | 2019-09-24 22:57:37 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2019-09-24 22:57:37 +0200 |
| commit | 67e222ca2e7602584789928b8b8e072544ca5a9a (patch) | |
| tree | 98c8f9af8d6e5e81784b8daf7c5e02e1a0bc9b0b | |
| parent | 07b7b916b7a9368ffe9f349853d45142fc596172 (diff) | |
improved communication handling on the server
| -rw-r--r-- | asciifarm/client/gameclient.py | 4 |
1 files 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'] |
