mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Fix issue with server
This commit is contained in:
parent
0eb74b85c9
commit
9486373906
@ -1,6 +1,3 @@
|
|||||||
from calendar import c
|
|
||||||
from distutils.command.clean import clean
|
|
||||||
from pickletools import bytes8
|
|
||||||
import socket
|
import socket
|
||||||
import re
|
import re
|
||||||
import uuid
|
import uuid
|
||||||
@ -336,7 +333,7 @@ def dispatch(client: socket, sender: dict, arr: bytes):
|
|||||||
send(client, f":>>ERROR:Too short username {tag_value}")
|
send(client, f":>>ERROR:Too short username {tag_value}")
|
||||||
return
|
return
|
||||||
|
|
||||||
for user in client_sockets:
|
for user in client_sockets.values():
|
||||||
if user['username'] == tag_value:
|
if user['username'] == tag_value:
|
||||||
send(client, f":>>ERROR:Can't connect with the name {tag_value}. This login is already occpupied")
|
send(client, f":>>ERROR:Can't connect with the name {tag_value}. This login is already occpupied")
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user