Reverse illegitimate changes on server

This commit is contained in:
Joscha 2017-04-14 09:41:02 +00:00
parent 54e09d18cc
commit 3cb21c02bc
3 changed files with 50 additions and 6 deletions

View file

@ -116,7 +116,7 @@ class Client():
elif i == "\n": self.map_.newline()
#elif i in string.digits + string.ascii_letters + string.punctuation + " ":
#self.map_.write(i)
elif isinstance(i, str) and len(i) == 1 and (i not in string.whitespace or i == " "):
elif isinstance(i, str) and len(i) == 1 and ord(i) > 31 and (i not in string.whitespace or i == " "):
self.map_.write(i)
def connection_thread(self):