Update server.py
All checks were successful
/ check (push) Successful in 26s

This commit is contained in:
Nova Cat 2025-01-29 20:17:03 -08:00
parent c9e44686b3
commit 4ac5292d2c

View file

@ -231,6 +231,8 @@ def session(connection, client, ip, isssl=False):
CAPEND = False
clident = None
pendingCommands = "" # list of commands that were executed before verification
unfinished = False
textt = ""
try:
print("Connected to client IP: {}".format(client))
connection.sendall(bytes(f":{server} NOTICE * :*** Looking for your hostname...\r\n","UTF-8"))
@ -270,7 +272,8 @@ def session(connection, client, ip, isssl=False):
break
print("Received data: {}".format(data))
try:
textt = data.decode()
textt += data.decode()
if textt[-1] == "\n":
for text in textt.replace("\r", "").split("\n"):
for i in socketListeners:
if "onSocket" in dir(i):