First off, I love the plugin, thank you for creating it.
Now for the bug report.
Background
I had two player connect, to TF2, with exactly the same name and from the same country. This is not something that I would expect to see happen often, but it happened. I expect that this would happen if two players connected from different countries but with the same name.
Problem
This message continually echoed up on the server to all players:
* AAAAA changed name to [RU]AAAAA
While this was happening over and over again, when I hit the TAB key one of the players was listed as
[RU]AAAAA
and the other one was still listed as
AAAAA
Log files
Here is the relevant part of the console output. To protect the players privacy I have modified the details of them both to be named AAAAA (and AAAAA) with respective steamID's 1 and 2 and corresponding IP addresses of 1.1.1.1 and 2.2.2.2.
Code:
L 02/22/2012 - 15:10:44: "AAAAA<7><STEAM_0:0:1><>" connected, address "1.1.1.1:27005"
Client "AAAAA" connected (1.1.1.1:27005).
L 02/22/2012 - 15:10:44: "AAAAA<7><STEAM_0:0:1><>" STEAM USERID validated
L 02/22/2012 - 15:10:49: "AAAAA<7><STEAM_0:0:1><Unassigned>" changed name to "[RU]AAAAA"
L 02/22/2012 - 15:10:49: "[RU]AAAAA<7><STEAM_0:0:1><>" entered the game
L 02/22/2012 - 15:10:53: "[RU]AAAAA<7><STEAM_0:0:1><Unassigned>" joined team "Blue"
... snip ...
L 02/22/2012 - 15:12:34: "AAAAA<9><STEAM_0:1:2><>" connected, address "2.2.2.2:27005"
Client "AAAAA" connected (2.2.2.2:27005).
L 02/22/2012 - 15:12:35: "AAAAA<9><STEAM_0:1:2><>" STEAM USERID validated
L 02/22/2012 - 15:12:45: "[RU]AAAAA<9><STEAM_0:1:2><>" entered the game
L 02/22/2012 - 15:12:51: "[RU]AAAAA<9><STEAM_0:1:2><Unassigned>" joined team "Blue"
L 02/22/2012 - 15:12:53: "[RU]AAAAA<9><STEAM_0:1:2><Blue>" changed role to "sniper"
I have read through the source (As a friend of mine always says "Use the source Luke, use the Source"). And I would suspect that one possible solution might be to index players on their steamid (STEAM_0:1:2) and not their client (AAAAA). I would fix the bug if I could but my coding and understanding of SourceMod is minimal at best.