summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--DiscoBot/Auxiliary/SpellCorrect.cs4
-rw-r--r--DiscoBot/Commands/Gm.cs3
2 files changed, 6 insertions, 1 deletions
diff --git a/DiscoBot/Auxiliary/SpellCorrect.cs b/DiscoBot/Auxiliary/SpellCorrect.cs
index 1b740e8..48f6a57 100644
--- a/DiscoBot/Auxiliary/SpellCorrect.cs
+++ b/DiscoBot/Auxiliary/SpellCorrect.cs
@@ -63,6 +63,10 @@
public double CompareExact(string s, string q)
{
+
+ s = s.ToLower();
+ q = q.ToLower();
+
int i, j;
const double Match = 3.0;
const double Gap = -2.0;
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: