Don't add multiple spaces for multiple groups

This commit is contained in:
FiniteReality
2016-08-31 15:05:31 +01:00
parent 1ab763e157
commit cddc39dfa1

View File

@@ -63,8 +63,9 @@ namespace Discord.Commands
if (groupAttrib.Prefix != null) if (groupAttrib.Prefix != null)
{ {
if (groupPrefix != "") if (groupPrefix != "")
groupPrefix += " "; nextGroupPrefix = groupPrefix + " " + groupAttrib.Prefix ?? type.Name;
nextGroupPrefix = groupPrefix + groupAttrib.Prefix ?? type.Name; else
nextGroupPrefix = groupAttrib.Prefix ?? type.Name;
} }
else else
{ {