From 4261ad6da397330a2dc9c33fb1b219a2603a3923 Mon Sep 17 00:00:00 2001 From: wowaname Date: Sat, 20 Aug 2016 06:18:29 +0000 Subject: [PATCH] fixed eol in commands e.g. /exec commands that output \r\n line endings would send to server " :Unknown command" --- scripts/colo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/colo.py b/scripts/colo.py index 2cc76dc..6a60638 100644 --- a/scripts/colo.py +++ b/scripts/colo.py @@ -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:]