From d55255c00fa32a23c0702881cc701a43dba6ce85 Mon Sep 17 00:00:00 2001 From: Nova Cat Date: Mon, 9 Dec 2024 21:46:04 -0800 Subject: [PATCH] fix codes --- server.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server.py b/server.py index 3ce4ccc..a6f1c03 100644 --- a/server.py +++ b/server.py @@ -297,16 +297,16 @@ def session(connection, client): # Get the modes + parameters, then print them out. modes = property_list[args[0]]["modes"] params = property_list[args[0]]["params"] - connection.sendall(bytes(f":{server} {pending} {target} +{modes} {params}\r\n","UTF-8")) + connection.sendall(bytes(f":{server} {pending} 221 {target} +{modes} {params}\r\n","UTF-8")) else: # Default channel mode - connection.sendall(bytes(f":{server} {pending} {target} +n\r\n","UTF-8")) + connection.sendall(bytes(f":{server} {pending} 324 {target} +n\r\n","UTF-8")) else: # Default channel mode - connection.sendall(bytes(f":{server} {pending} {target} +n\r\n","UTF-8")) + connection.sendall(bytes(f":{server} {pending} 324 {target} +n\r\n","UTF-8")) else: if args[0][0] == "#": - connection.sendall(bytes(f":{server} 403 {pending} {target} :No such channel\r\n","UTF-8")) + connection.sendall(bytes(f":{server} {pending} 403 {target} :No such channel\r\n","UTF-8")) else: connection.sendall(bytes(f":{server} {pending} 505 :Cant change mode for other users\r\n","UTF-8"))