summaryrefslogtreecommitdiff
path: root/DiscoBot/Commands/Gm.cs
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-04-09 17:42:02 +0200
committerTrueDoctor <d-kobert@web.de>2018-04-09 17:42:02 +0200
commit9b9de3a9c72f82e4d58b54e87e266d7048fe2599 (patch)
treef97fd858e344c8d3eec0d6d20b0360a0afaa9bb4 /DiscoBot/Commands/Gm.cs
parentbdd094926815196802c7d0bdad089fee9791abf4 (diff)
parent1194cf18735939e525df4248c5a3424789fde60d (diff)
Merge branch 'master' of https://github.com/TrueDoctor/DiscoBot
Diffstat (limited to 'DiscoBot/Commands/Gm.cs')
-rw-r--r--DiscoBot/Commands/Gm.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/DiscoBot/Commands/Gm.cs b/DiscoBot/Commands/Gm.cs
index 60b82fb..c1fa4b1 100644
--- a/DiscoBot/Commands/Gm.cs
+++ b/DiscoBot/Commands/Gm.cs
@@ -13,7 +13,8 @@
public static string CheckCommand(string name, CommandTypes command, string waffe, int erschwernis = 0)
{
var comp = new SpellCorrect();
- var chr = Dsa.Chars.OrderBy(x => comp.Compare(x.Name, name)).First();
+ var chr = Dsa.Chars.OrderBy(x => comp.Compare(name, x.Name)).First();
+
switch (command)
{
case CommandTypes.Talent: