This commit is contained in:
parent
aaff5b977e
commit
30f923aac8
1 changed files with 7 additions and 8 deletions
|
@ -709,9 +709,6 @@ 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] == "":
|
||||||
pass
|
pass
|
||||||
|
@ -719,6 +716,8 @@ def session(connection, client, ip, isssl=False):
|
||||||
# Unknown command
|
# Unknown command
|
||||||
cmd = text.split(" ")[0]
|
cmd = text.split(" ")[0]
|
||||||
connection.sendall(bytes(f":{server} 421 {pending} {cmd} :Unknown command\r\n","UTF-8"))
|
connection.sendall(bytes(f":{server} 421 {pending} {cmd} :Unknown command\r\n","UTF-8"))
|
||||||
|
else:
|
||||||
|
pendingCommands.append(text)
|
||||||
except ssl.SSLEOFError:
|
except ssl.SSLEOFError:
|
||||||
print("EOF occured...")
|
print("EOF occured...")
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
|
|
Loading…
Add table
Reference in a new issue