From 7e40c8a422b807796cd33d9c5ba03fd1cb166c88 Mon Sep 17 00:00:00 2001 From: swee Date: Sun, 15 Dec 2024 19:10:18 -0800 Subject: [PATCH] Update server.py --- server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.py b/server.py index 6011b1f..ac65c66 100644 --- a/server.py +++ b/server.py @@ -411,6 +411,8 @@ def session(connection, client): elif command == "GITSERV" or (command == "PRIVMSG" and args[0].lower() == "gitserv"): if command == "PRIVMSG": args = args[1:] + if args[0][0] == ":": + args[0] == args[0][1:] if len(args) == 0: connection.sendall(bytes(f":{server} 461 {pending} {command} :Not enough parameters\r\n","UTF-8")) elif args[0].upper() == "PULL":