Fixes string interpolation
This commit is contained in:
parent
42d0b6271f
commit
7d3a0ca265
233 changed files with 758 additions and 690 deletions
|
|
@ -234,7 +234,8 @@ namespace Server.Gumps
|
|||
a.SetBanTags( from, DateTime.UtcNow, duration );
|
||||
|
||||
if ( comment != null )
|
||||
a.Comments.Add( new AccountComment( from.RawName, String.Format( "Duration: {0}, Comment: {1}", (( duration == TimeSpan.MaxValue )? "Infinite" : duration.ToString()), comment ) ) );
|
||||
a.Comments.Add( new AccountComment( from.RawName,
|
||||
$"Duration: {((duration == TimeSpan.MaxValue) ? "Infinite" : duration.ToString())}, Comment: {comment}") );
|
||||
}
|
||||
|
||||
if ( duration == TimeSpan.MaxValue )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue