From 238dd85516e6ff5483c1c3bfa6395df88bd784cd Mon Sep 17 00:00:00 2001 From: swee Date: Fri, 27 Dec 2024 20:11:35 -0800 Subject: [PATCH] Update server.py --- server.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server.py b/server.py index 95c81a2..74d7b53 100644 --- a/server.py +++ b/server.py @@ -68,7 +68,6 @@ class IRCat_DATA_BROKER: return ["Nickname doesn't exist."] config = IRCat_DATA_BROKER() -ip = get('https://api.ipify.org').content.decode('utf8') tcp_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) tcp_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) server_address = (restrict_ip, 6667) @@ -97,7 +96,7 @@ def pinger(nick, connection): connection.shutdown(socket.SHUT_WR) connection.close() break -def session(connection, client, ip_to): +def session(connection, client, ip): global property_list pending = "*" # The nickname of the client already_set = False # If the client gave the server a NICK packet