From 3f1ced082648d74588faba0a17e3c1cc15dc50f2 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Sat, 20 Feb 2016 21:34:07 +0100 Subject: [PATCH] incremented version, logserver and userpresence can be used by manageserver perm --- NadekoBot/Classes/NadekoStats.cs | 2 +- NadekoBot/Commands/LogCommand.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NadekoBot/Classes/NadekoStats.cs b/NadekoBot/Classes/NadekoStats.cs index 68a41a91..346349a5 100644 --- a/NadekoBot/Classes/NadekoStats.cs +++ b/NadekoBot/Classes/NadekoStats.cs @@ -11,7 +11,7 @@ namespace NadekoBot { public class NadekoStats { - public string BotVersion = "NadekoBot 0.8-beta13"; + public string BotVersion = "NadekoBot 0.8-beta14"; private static readonly NadekoStats _instance = new NadekoStats(); public static NadekoStats Instance => _instance; diff --git a/NadekoBot/Commands/LogCommand.cs b/NadekoBot/Commands/LogCommand.cs index f02f3d34..5c881f86 100644 --- a/NadekoBot/Commands/LogCommand.cs +++ b/NadekoBot/Commands/LogCommand.cs @@ -19,7 +19,7 @@ namespace NadekoBot.Commands { public override Func DoFunc() => async e => { if (e.User.Id != NadekoBot.OwnerID || - e.User.Server.Owner.Id != e.User.Id) + !e.User.ServerPermissions.ManageServer) return; Channel ch; if (!logs.TryRemove(e.Server, out ch)) { @@ -107,7 +107,7 @@ namespace NadekoBot.Commands { .Description("Starts logging to this channel when someone from the server goes online/offline/idle. BOT OWNER ONLY. SERVER OWNER ONLY.") .Do(async e => { if (e.User.Id != NadekoBot.OwnerID || - e.User.Server.Owner.Id != e.User.Id) + !e.User.ServerPermissions.ManageServer) return; Channel ch; if (!loggingPresences.TryRemove(e.Server, out ch)) {