omg
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2021-04-26 22:59:23 +02:00
parent 034f1e3403
commit 8acd49fe09
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -33,10 +33,13 @@ class Server:
if command == "LINOK": if command == "LINOK":
self.login(self.networkInstance.homeDirectory) self.login(self.networkInstance.homeDirectory)
self.networkInstance.sendMessage("OK".encode('UTF-8')) self.networkInstance.sendMessage("OK".encode('UTF-8'))
return None
elif command == "LINERROR": elif command == "LINERROR":
self.networkInstance.sendMessage("ERROR".encode('UTF-8')) self.networkInstance.sendMessage("ERROR".encode('UTF-8'))
return None
elif command == "ERROR": elif command == "ERROR":
self.networkInstance.sendMessage("ERROR".encode('UTF-8')) self.networkInstance.sendMessage("ERROR".encode('UTF-8'))
return None
parsedCommand = command.split(" ") parsedCommand = command.split(" ")
if len(parsedCommand) > 3: if len(parsedCommand) > 3:
self.networkInstance.sendMessage("ERROR".encode('UTF-8')) self.networkInstance.sendMessage("ERROR".encode('UTF-8'))