Update server.py
This commit is contained in:
parent
1fb1389e57
commit
7e40c8a422
1 changed files with 2 additions and 0 deletions
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue