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
|
CAPEND = False
|
||||||
clident = None
|
clident = None
|
||||||
pendingCommands = "" # list of commands that were executed before verification
|
pendingCommands = "" # list of commands that were executed before verification
|
||||||
|
unfinished = False
|
||||||
|
textt = ""
|
||||||
try:
|
try:
|
||||||
print("Connected to client IP: {}".format(client))
|
print("Connected to client IP: {}".format(client))
|
||||||
connection.sendall(bytes(f":{server} NOTICE * :*** Looking for your hostname...\r\n","UTF-8"))
|
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
|
break
|
||||||
print("Received data: {}".format(data))
|
print("Received data: {}".format(data))
|
||||||
try:
|
try:
|
||||||
textt = data.decode()
|
textt += data.decode()
|
||||||
|
if textt[-1] == "\n":
|
||||||
for text in textt.replace("\r", "").split("\n"):
|
for text in textt.replace("\r", "").split("\n"):
|
||||||
for i in socketListeners:
|
for i in socketListeners:
|
||||||
if "onSocket" in dir(i):
|
if "onSocket" in dir(i):
|
||||||
|
|
Loading…
Add table
Reference in a new issue