Modules without aliases now default to an empty string alias

This commit is contained in:
AntiTcb
2016-12-19 17:53:54 -05:00
parent ae3ada84c4
commit bc985ada92

View File

@@ -65,8 +65,8 @@ namespace Discord.Commands
result = level.Aliases.Permutate(result, (second, first) => first + " " + second);
}
if (result == null) //there were no aliases; default to an empty list
result = new List<string>();
if (result == null) //there were no aliases; default to an empty string alias
result = new List<string> { "" };
return result;
}