don't display '()' in banned item list when no allowed groups is available

This commit is contained in:
Natrim 2012-01-11 11:27:41 +01:00
parent 5b7971f753
commit e113982158

View file

@ -227,7 +227,7 @@ namespace TShockAPI.DB
public override string ToString()
{
return Name + " (" + String.Join(",", AllowedGroups) + ")";
return Name + (AllowedGroups.Count > 0 ? " (" + String.Join(",", AllowedGroups) + ")" : "");
}
}
}