Correction of stupid misspellings
This commit is contained in:
parent
175e6b55e9
commit
da0e1549a2
2 changed files with 3 additions and 3 deletions
2
gui.py
2
gui.py
|
@ -17,7 +17,7 @@ def start():
|
||||||
global client
|
global client
|
||||||
client = Client(host.get(), port.get())
|
client = Client(host.get(), port.get())
|
||||||
except ConnectionError:
|
except ConnectionError:
|
||||||
showerror("Error", "can't connect tu server !")
|
showerror("Error", "can't connect to server !")
|
||||||
else:
|
else:
|
||||||
login.destroy()
|
login.destroy()
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ class Server(Socket):
|
||||||
self.socket.listen(5)
|
self.socket.listen(5)
|
||||||
self.service_id = service_id
|
self.service_id = service_id
|
||||||
self.command_suffix = "/"
|
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.commands = {"help": self.command_help, "players list": self.command_players_list}
|
||||||
self.clients = dict()
|
self.clients = dict()
|
||||||
print("Wait for connexion...")
|
print("Wait for connexion...")
|
||||||
|
@ -27,7 +27,7 @@ class Server(Socket):
|
||||||
name = self.client_name(c)
|
name = self.client_name(c)
|
||||||
if name:
|
if name:
|
||||||
self.clients[name] = c
|
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 !")
|
self.broadcast(f"{name} is online !")
|
||||||
Thread(target=self.listen_client, args=(name,)).start()
|
Thread(target=self.listen_client, args=(name,)).start()
|
||||||
|
|
||||||
|
|
Reference in a new issue