diff options
| author | troido <troido@protonmail.com> | 2019-01-18 23:14:52 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2019-01-18 23:14:52 +0100 |
| commit | 3a05711e0fe825aab70da5c540314965cee6f4af (patch) | |
| tree | 87613dfa510c275fff3161171b3a9a7ffde767e0 | |
| parent | 22766ee652719eef50f6eab7fd93009dec372660 (diff) | |
client doesn't crash anymore on empty '/'
| -rw-r--r-- | asciifarm/client/inputhandler.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/asciifarm/client/inputhandler.py b/asciifarm/client/inputhandler.py index 850e890..2d038d2 100644 --- a/asciifarm/client/inputhandler.py +++ b/asciifarm/client/inputhandler.py @@ -30,6 +30,8 @@ class InputHandler: def processString(self, message): if message: if message[0] == '/': + if len(message) == 1: + return if message[1] == '/': self.commandHandler.chat(message[1:]) else: |
