Skip to content

Duplicate online usernames allowed — breaks DMs #5

@davidnoyes

Description

@davidnoyes

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions