incremented version, logserver and userpresence can be used by manageserver perm
This commit is contained in:
parent
7e295d2b89
commit
3f1ced0826
@ -11,7 +11,7 @@ namespace NadekoBot
|
|||||||
{
|
{
|
||||||
public class NadekoStats
|
public class NadekoStats
|
||||||
{
|
{
|
||||||
public string BotVersion = "NadekoBot 0.8-beta13";
|
public string BotVersion = "NadekoBot 0.8-beta14";
|
||||||
|
|
||||||
private static readonly NadekoStats _instance = new NadekoStats();
|
private static readonly NadekoStats _instance = new NadekoStats();
|
||||||
public static NadekoStats Instance => _instance;
|
public static NadekoStats Instance => _instance;
|
||||||
|
@ -19,7 +19,7 @@ namespace NadekoBot.Commands {
|
|||||||
|
|
||||||
public override Func<CommandEventArgs, Task> DoFunc() => async e => {
|
public override Func<CommandEventArgs, Task> DoFunc() => async e => {
|
||||||
if (e.User.Id != NadekoBot.OwnerID ||
|
if (e.User.Id != NadekoBot.OwnerID ||
|
||||||
e.User.Server.Owner.Id != e.User.Id)
|
!e.User.ServerPermissions.ManageServer)
|
||||||
return;
|
return;
|
||||||
Channel ch;
|
Channel ch;
|
||||||
if (!logs.TryRemove(e.Server, out 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.")
|
.Description("Starts logging to this channel when someone from the server goes online/offline/idle. BOT OWNER ONLY. SERVER OWNER ONLY.")
|
||||||
.Do(async e => {
|
.Do(async e => {
|
||||||
if (e.User.Id != NadekoBot.OwnerID ||
|
if (e.User.Id != NadekoBot.OwnerID ||
|
||||||
e.User.Server.Owner.Id != e.User.Id)
|
!e.User.ServerPermissions.ManageServer)
|
||||||
return;
|
return;
|
||||||
Channel ch;
|
Channel ch;
|
||||||
if (!loggingPresences.TryRemove(e.Server, out ch)) {
|
if (!loggingPresences.TryRemove(e.Server, out ch)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user