diff options
Diffstat (limited to 'Aktywator/Tournament.cs')
-rw-r--r-- | Aktywator/Tournament.cs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Aktywator/Tournament.cs b/Aktywator/Tournament.cs index 87fa759..aa5f042 100644 --- a/Aktywator/Tournament.cs +++ b/Aktywator/Tournament.cs @@ -113,18 +113,23 @@ namespace Aktywator virtual internal string shortenNameToBWS(string name) { + name = Common.bezOgonkow(name); if ("pauza".Equals(name.Trim())) { return " "; } else { - string[] nameParts = name.Trim().Split(' '); - if (nameParts.Length > 0) + if (this._type != Tournament.TYPE_TEAMY) { - nameParts[0] = (nameParts[0].Length > 0) ? nameParts[0][0].ToString() : " "; + string[] nameParts = name.Trim().Split(' '); + if (nameParts.Length > 0) + { + nameParts[0] = (nameParts[0].Length > 0) ? nameParts[0][0].ToString() : " "; + } + return String.Join(" ", nameParts); } - return String.Join(" ", nameParts); + return name; } } |