Modules without aliases now default to an empty string alias
This commit is contained in:
@@ -65,8 +65,8 @@ namespace Discord.Commands
|
|||||||
result = level.Aliases.Permutate(result, (second, first) => first + " " + second);
|
result = level.Aliases.Permutate(result, (second, first) => first + " " + second);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result == null) //there were no aliases; default to an empty list
|
if (result == null) //there were no aliases; default to an empty string alias
|
||||||
result = new List<string>();
|
result = new List<string> { "" };
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user