Update server.py

This commit is contained in:
Nova Cat 2024-12-15 19:10:18 -08:00
parent 1fb1389e57
commit 7e40c8a422

View file

@ -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":