fixed eol in commands

e.g. /exec commands that output \r\n line endings would send to server " :Unknown command"
This commit is contained in:
wowaname 2016-08-20 06:18:29 +00:00
parent 432ca3ea75
commit 4261ad6da3
1 changed files with 2 additions and 1 deletions

View File

@ -127,7 +127,8 @@ def cb_colo (data, mod, buf, input):
input = input.split(" ", 1)[1] if " " in input else ""
break
else:
return input
# XXX
return input.replace('\r','')
if input.startswith("//"): input = input[1:]