From dc5427ca592b2a5df70a4d4410314e8555425353 Mon Sep 17 00:00:00 2001 From: Nova Cat Date: Wed, 11 Dec 2024 15:28:52 -0800 Subject: [PATCH] GITSERV privmsg shim --- server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 823d29a..bd18102 100644 --- a/server.py +++ b/server.py @@ -330,7 +330,9 @@ def session(connection, client): else: connection.sendall(bytes(f":{server} 505 {pending} :Cant change mode for other users\r\n","UTF-8")) - elif command == "GITSERV": + elif command == "GITSERV" or (command == "PRIVMSG" and args[0].lower() == "gitserv"): + if command == "PRIVMSG": + args = args[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":