diff options
| author | troido <troido@protonmail.com> | 2020-04-23 12:57:36 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-23 12:57:36 +0200 |
| commit | f7f8f1ee8fd9ed6c4fc6ca040bb86c5e9039ae89 (patch) | |
| tree | b5472c1f69653afbec9f1f7a698dd74698da676b /asciifarmclient/connection.py | |
| parent | 4021d17bbc7e9d3ca3f54fdd5e0545c170e9752b (diff) | |
do introduction before starting the client; ask for the password when the name is registered
Diffstat (limited to 'asciifarmclient/connection.py')
| -rw-r--r-- | asciifarmclient/connection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asciifarmclient/connection.py b/asciifarmclient/connection.py index bdcc913..707a02e 100644 --- a/asciifarmclient/connection.py +++ b/asciifarmclient/connection.py @@ -25,7 +25,7 @@ class Connection: return None datastr = databytes.decode('utf-8') msg = json.loads(datastr) - message = messages.messages[msg[0]].from_json(msg) + message = messages.message_from_json(msg) return message def listen(self, callback, onError): |
