incremented version, logserver and userpresence can be used by manageserver perm

This commit is contained in:
Master Kwoth 2016-02-20 21:34:07 +01:00
parent 7e295d2b89
commit 3f1ced0826
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -19,7 +19,7 @@ namespace NadekoBot.Commands {
public override Func<CommandEventArgs, Task> 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)) {