Bug Description
When a new client connects, the server only checks for a matching offline client to reconnect. If someone joins with the same name as an already-online user, both are added. This breaks DMs — next() at line 417 always finds the first match, so the second user with that name can never receive DMs.
File & Lines
server code.py — lines 302–345
Severity
Functional bug — breaks direct messaging when duplicate names exist.
Bug Description
When a new client connects, the server only checks for a matching offline client to reconnect. If someone joins with the same name as an already-online user, both are added. This breaks DMs —
next()at line 417 always finds the first match, so the second user with that name can never receive DMs.File & Lines
server code.py— lines 302–345Severity
Functional bug — breaks direct messaging when duplicate names exist.