diff --git a/NadekoBot/Classes/Permissions/PermissionChecker.cs b/NadekoBot/Classes/Permissions/PermissionChecker.cs index 7b8a5c09..b49e7ca0 100644 --- a/NadekoBot/Classes/Permissions/PermissionChecker.cs +++ b/NadekoBot/Classes/Permissions/PermissionChecker.cs @@ -29,6 +29,9 @@ namespace NadekoBot.Classes.Permissions { public bool CanRun(Command command, User user, Channel channel, out string error) { error = String.Empty; + if (channel.IsPrivate || channel.Server == null) + return command.Category == "Help"; + if (ConfigHandler.IsUserBlacklisted(user.Id) || (!channel.IsPrivate && (ConfigHandler.IsServerBlacklisted(channel.Server.Id) || ConfigHandler.IsChannelBlacklisted(channel.Id)))) { @@ -38,9 +41,6 @@ namespace NadekoBot.Classes.Permissions { if (timeBlackList.ContainsKey(user)) return false; - if (channel.IsPrivate) - return command.Category == "Help"; - timeBlackList.TryAdd(user, DateTime.Now); try {