Update server.py
All checks were successful
Check syntax / check (push) Successful in 14s
All checks were successful
Check syntax / check (push) Successful in 14s
This commit is contained in:
parent
fb511d28f8
commit
238dd85516
1 changed files with 1 additions and 2 deletions
|
@ -68,7 +68,6 @@ class IRCat_DATA_BROKER:
|
||||||
return ["Nickname doesn't exist."]
|
return ["Nickname doesn't exist."]
|
||||||
|
|
||||||
config = IRCat_DATA_BROKER()
|
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 = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
tcp_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
tcp_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||||
server_address = (restrict_ip, 6667)
|
server_address = (restrict_ip, 6667)
|
||||||
|
@ -97,7 +96,7 @@ def pinger(nick, connection):
|
||||||
connection.shutdown(socket.SHUT_WR)
|
connection.shutdown(socket.SHUT_WR)
|
||||||
connection.close()
|
connection.close()
|
||||||
break
|
break
|
||||||
def session(connection, client, ip_to):
|
def session(connection, client, ip):
|
||||||
global property_list
|
global property_list
|
||||||
pending = "*" # The nickname of the client
|
pending = "*" # The nickname of the client
|
||||||
already_set = False # If the client gave the server a NICK packet
|
already_set = False # If the client gave the server a NICK packet
|
||||||
|
|
Loading…
Reference in a new issue