Skip to content
Snippets Groups Projects
Commit ff1ef600 authored by penguin0001's avatar penguin0001
Browse files

client end messages

parent 3b6f98c4
No related branches found
No related tags found
No related merge requests found
...@@ -28,17 +28,13 @@ user_input = input("Enter username: ") ...@@ -28,17 +28,13 @@ user_input = input("Enter username: ")
while connect: while connect:
server_msg = send(user_input) server_msg = send(user_input)
print(server_msg) print(server_msg)
user_input = input() if server_msg == "ERR" or server_msg == "DONE" or server_msg == "END":
if user_input.upper() == "BYE" or server_msg == "ERR" or server_msg == "DONE" or server_msg == "END":
connect = False connect = False
else:
user_input = input()
if user_input.upper() == "BYE":
connect = False
# disconnect # disconnect
print(send("BYE")) print(send("BYE"))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment