Import system now imports UserIDs

This commit is contained in:
Lucas Nicodemus 2011-07-21 12:31:11 -06:00
parent cd018fed8d
commit 0aea895a59
2 changed files with 11 additions and 4 deletions

View file

@ -146,9 +146,16 @@ namespace TShockAPI.DB
ipstr = "";
for( int i = 0; i < ips.Length; i++ )
{
if (ipstr != "")
ipstr += ",";
ipstr += ips[i];
try
{
if (ipstr != "")
ipstr += ",";
ipstr += TShock.Users.GetUserID(ips[i]);
} catch (Exception e)
{
Log.Error("An IP address failed to import. It wasn't a user in the new user system.");
}
}
}