Closed jesopo closed 1 year ago
This issue is testable by getting a user into this state and then attempting to join a game. For example:
nick!~ident@host
and join the werewolf game channelPART
the channel (not QUIT
), then once you don't share any channels with lykos, QUIT
nick!~newident@host
and join the werewolf game channel!j
to start a gameI've tested this PR on my personal bot and can confirm it fixes the above.
the code as it currently is won't clean up a user when they part the only channel they share with lykos, which means if they rejoin with different details (i.e. changed ident) there will be a version of them still in state (but in no channels!) which causes
users.py::get()
to find multiple potential users