parent
c0f2b3b91c
commit
50282f850e
1 changed files with 3 additions and 2 deletions
|
@ -230,6 +230,7 @@ def session(connection, client, ip, isssl=False):
|
||||||
usesIRCv3 = False
|
usesIRCv3 = False
|
||||||
CAPEND = False
|
CAPEND = False
|
||||||
clident = None
|
clident = None
|
||||||
|
pendingCommands = [] # list of commands that were executed before verification
|
||||||
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"))
|
||||||
|
@ -704,8 +705,8 @@ def session(connection, client, ip, isssl=False):
|
||||||
connection.sendall(bytes(f":{server} 401 {pending} {target} :No such nick/channel\r\n","UTF-8"))
|
connection.sendall(bytes(f":{server} 401 {pending} {target} :No such nick/channel\r\n","UTF-8"))
|
||||||
else:
|
else:
|
||||||
connection.sendall(bytes(f":{server} 461 {pending} {command} :Not enough parameters\r\n","UTF-8"))
|
connection.sendall(bytes(f":{server} 461 {pending} {command} :Not enough parameters\r\n","UTF-8"))
|
||||||
|
else:
|
||||||
|
pendingCommands.append(text)
|
||||||
|
|
||||||
# Ignore empty text
|
# Ignore empty text
|
||||||
elif text.split(" ")[0] == "":
|
elif text.split(" ")[0] == "":
|
||||||
|
|
Loading…
Add table
Reference in a new issue