summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2024-10-08 12:58:54 -0400
committerTest_User <hax@andrewyu.org>2024-10-08 12:58:54 -0400
commitcd17d0cf9fc566ab90841cb0e453069de2f30650 (patch)
tree8dd7338d44e03b4adacab052a99aece6dcc33d26
parentOld command prefix change, plus a fix because python byte indexing (diff)
downloadpy_coupserv-master.tar.gz
py_coupserv-master.zip
Fix stdin usageHEADmaster
-rwxr-xr-xCoupServ.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/CoupServ.py b/CoupServ.py
index 9634f06..53a5965 100755
--- a/CoupServ.py
+++ b/CoupServ.py
@@ -145,7 +145,7 @@ usercount = 0
def read_and_send():
for line in sys.stdin:
try:
- send(line.rstrip(b"\n"))
+ send(line.rstrip("\n").encode("UTF-8"))
except Exception:
pass