Browse Source

Modules without aliases now default to an empty string alias

tags/1.0-rc
AntiTcb 8 years ago
parent
commit
bc985ada92
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Discord.Net.Commands/Info/ModuleInfo.cs

+ 2
- 2
src/Discord.Net.Commands/Info/ModuleInfo.cs View File

@@ -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
result = new List<string>();
if (result == null) //there were no aliases; default to an empty string alias
result = new List<string> { "" };


return result; return result;
} }


Loading…
Cancel
Save