ternary for setting Hostname

This commit is contained in:
Ben Harris 2024-04-19 01:12:23 -04:00
parent 80259bbad1
commit 1e1da72ed2
1 changed files with 1 additions and 4 deletions

View File

@ -29,10 +29,7 @@ namespace ChatSharp
var mask = host.Split('@', '!');
Nick = mask[0];
User = mask[1];
if (mask.Length <= 2)
Hostname = "";
else
Hostname = mask[2];
Hostname = mask.Length <= 2 ? "" : mask[2];
}
}