Bots will be excluded from user and voice presence logging
This commit is contained in:
parent
5c26036634
commit
8fb21d1a3e
@ -412,7 +412,7 @@ namespace NadekoBot.Modules.Administration.Services
|
|||||||
}
|
}
|
||||||
|
|
||||||
logChannel = null;
|
logChannel = null;
|
||||||
if (logSetting.LogUserPresenceId != null && (logChannel = await TryGetLogChannel(before.Guild, logSetting, LogType.UserPresence)) != null)
|
if (!before.IsBot && logSetting.LogUserPresenceId != null && (logChannel = await TryGetLogChannel(before.Guild, logSetting, LogType.UserPresence)) != null)
|
||||||
{
|
{
|
||||||
if (before.Status != after.Status)
|
if (before.Status != after.Status)
|
||||||
{
|
{
|
||||||
@ -571,7 +571,7 @@ namespace NadekoBot.Modules.Administration.Services
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
var usr = iusr as IGuildUser;
|
var usr = iusr as IGuildUser;
|
||||||
if (usr == null)
|
if (usr == null || usr.IsBot)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var beforeVch = before.VoiceChannel;
|
var beforeVch = before.VoiceChannel;
|
||||||
|
Loading…
Reference in New Issue
Block a user