From cd17d0cf9fc566ab90841cb0e453069de2f30650 Mon Sep 17 00:00:00 2001 From: Test_User Date: Tue, 8 Oct 2024 12:58:54 -0400 Subject: Fix stdin usage --- CoupServ.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3