This commit is contained in:
parent
c9e44686b3
commit
4ac5292d2c
1 changed files with 432 additions and 429 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue