From 97450e451fe535bccec1651b9960dd0f446736f3 Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Wed, 6 Jun 2018 17:10:58 +0200 Subject: fixed some async stuff --- DiscoBot/Commands/List.cs | 2 ++ DiscoBot/Commands/MiscCommands.cs | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'DiscoBot/Commands') diff --git a/DiscoBot/Commands/List.cs b/DiscoBot/Commands/List.cs index 3cd66b9..601178c 100644 --- a/DiscoBot/Commands/List.cs +++ b/DiscoBot/Commands/List.cs @@ -21,6 +21,8 @@ var res = new List(); var character = ((Character)Dsa.Chars.Find(x => x.Name.Equals(Dsa.Relation[this.Context.User.Username]))); + + switch (prop.ToLower()) { case "chars": diff --git a/DiscoBot/Commands/MiscCommands.cs b/DiscoBot/Commands/MiscCommands.cs index 158882c..daf34e2 100644 --- a/DiscoBot/Commands/MiscCommands.cs +++ b/DiscoBot/Commands/MiscCommands.cs @@ -180,10 +180,7 @@ namespace DiscoBot.Commands [Alias("Check")] public async Task CheckAsync(string quarry) { - var perm = new List(); - perm.Add("Admin"); - perm.Add("Mod"); - perm.Add("Privatpolizei"); + var perm = new List { "Admin", "Mod", "Privatpolizei" }; Permissions.Test(this.Context, perm.ToArray()); -- cgit v1.2.3-70-g09d2