summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-08-23 18:07:44 +0200
committeremkael <emkael@tlen.pl>2017-08-23 18:07:44 +0200
commitb936f4d7aac6b677be2c16fe4e750eda2df6f230 (patch)
treebdcfd2ca13025855429b72cdd6c5490b925cfa7b
parenta7c21fced22dfe48b78b56c8cc44a8601d2ad963 (diff)
Shortened names in preview now accurate with what's actually sent to BWS
-rw-r--r--Aktywator/Tournament.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Aktywator/Tournament.cs b/Aktywator/Tournament.cs
index aa5f042..038fdbb 100644
--- a/Aktywator/Tournament.cs
+++ b/Aktywator/Tournament.cs
@@ -114,6 +114,10 @@ namespace Aktywator
virtual internal string shortenNameToBWS(string name)
{
name = Common.bezOgonkow(name);
+ if (name.Length > 18)
+ {
+ name = name.Substring(0, 18);
+ }
if ("pauza".Equals(name.Trim()))
{
return " ";