Boot by Name instead of table position
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@730 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -253,13 +253,13 @@ public class Table
|
||||
* Indicate to this table that a user was booted and should
|
||||
* be prevented from rejoining.
|
||||
*/
|
||||
public void addBannedUser (int position)
|
||||
public void addBannedUser (Name player)
|
||||
{
|
||||
if (_bannedUsers == null) {
|
||||
_bannedUsers = new HashSet<Name>();
|
||||
}
|
||||
|
||||
_bannedUsers.add(players[position]);
|
||||
_bannedUsers.add(player);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user