diff options
author | emkael <emkael@tlen.pl> | 2017-08-23 18:02:24 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-08-23 18:02:24 +0200 |
commit | 4f38d03e4d6f1a53846bc1ec8d024808ae71a01b (patch) | |
tree | 056334990768c8c67d6b11ba7a331d6bbe4fe167 /Aktywator/Tournament.cs | |
parent | c30fbc0864c52a320be0db69cef580318374dbbe (diff) | |
parent | 5ac5e9d211eda64cf35a2d727e3c9cfc1493c99a (diff) |
Merge branch 'names-list' into 1.1-beta
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; } } |