Archived
1
0
Fork 0

Correction of stupid misspellings

This commit is contained in:
Ethanell 2019-07-19 18:36:45 +02:00
parent 175e6b55e9
commit da0e1549a2
2 changed files with 3 additions and 3 deletions

2
gui.py
View file

@ -17,7 +17,7 @@ def start():
global client
client = Client(host.get(), port.get())
except ConnectionError:
showerror("Error", "can't connect tu server !")
showerror("Error", "can't connect to server !")
else:
login.destroy()

View file

@ -11,7 +11,7 @@ class Server(Socket):
self.socket.listen(5)
self.service_id = service_id
self.command_suffix = "/"
self.welcom_msg = "Welcom ! Type \"/help\" to see commands and \"quit\" to exit"
self.welcome_msg = "Welcome ! Type \"/help\" to see commands and \"quit\" to exit"
self.commands = {"help": self.command_help, "players list": self.command_players_list}
self.clients = dict()
print("Wait for connexion...")
@ -27,7 +27,7 @@ class Server(Socket):
name = self.client_name(c)
if name:
self.clients[name] = c
self.send(self.clients[name], self.welcom_msg)
self.send(self.clients[name], self.welcome_msg)
self.broadcast(f"{name} is online !")
Thread(target=self.listen_client, args=(name,)).start()