Bug fix for region allow, updated the whole database, was missing a where clause

This commit is contained in:
Zack Piispanen 2011-07-17 13:18:04 -04:00
parent 3c4525749d
commit 8e9bbcc5f9

View file

@ -240,8 +240,9 @@ namespace TShockAPI.DB
else
MergedIDs = MergedIDs + "," + userName;
com.CommandText = "UPDATE Regions SET UserIds=@ids";
com.CommandText = "UPDATE Regions SET UserIds=@ids WHERE RegionName=@name";
com.AddParameter("@ids", MergedIDs);
com.AddParameter("@name", regionName);
if (com.ExecuteNonQuery() > 0)
{
ReloadAllRegions();