From 1f832a5b4b306d122669d6c6a3b0b56895c1e560 Mon Sep 17 00:00:00 2001 From: swee Date: Sat, 28 Dec 2024 14:58:26 -0800 Subject: [PATCH] Update server.py --- server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index b0e4ac2..3c1415c 100644 --- a/server.py +++ b/server.py @@ -441,7 +441,7 @@ def session(connection, client, ip): if command == "PRIVMSG": args = args[1:] if args[0][0] == ":": - args[0] == args[0][1:] + 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": @@ -460,6 +460,8 @@ def session(connection, client, ip): elif command == "NICKSERV" or (command == "PRIVMSG" and args[0].lower() == "nickserv"): 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() == "IDENTIFY":