| @@ -60,17 +60,12 @@ namespace Discord.Commands | |||||
| if (groupAttrib != null) | if (groupAttrib != null) | ||||
| { | { | ||||
| string nextGroupPrefix; | string nextGroupPrefix; | ||||
| if (groupAttrib.Prefix != null) | |||||
| { | |||||
| if (groupPrefix != "") | |||||
| nextGroupPrefix = groupPrefix + " " + groupAttrib.Prefix ?? type.Name; | |||||
| else | |||||
| nextGroupPrefix = groupAttrib.Prefix ?? type.Name; | |||||
| } | |||||
| if (groupPrefix != "") | |||||
| nextGroupPrefix = groupPrefix + " " + (groupAttrib.Prefix ?? type.Name.ToLowerInvariant()); | |||||
| else | else | ||||
| { | |||||
| nextGroupPrefix = groupPrefix; | |||||
| } | |||||
| nextGroupPrefix = groupAttrib.Prefix ?? type.Name.ToLowerInvariant(); | |||||
| SearchClass(type, ReflectionUtils.CreateObject(type, Service, dependencyMap), commands, nextGroupPrefix, dependencyMap); | SearchClass(type, ReflectionUtils.CreateObject(type, Service, dependencyMap), commands, nextGroupPrefix, dependencyMap); | ||||
| } | } | ||||
| } | } | ||||