afk voice channel is now ignored with .v+t command

This commit is contained in:
Master Kwoth 2016-07-11 11:50:38 +02:00
parent 98f6498711
commit 3bc636774f

View File

@ -56,7 +56,7 @@ namespace NadekoBot.Modules.Administration.Commands
sendMessages: PermValue.Deny)).ConfigureAwait(false); sendMessages: PermValue.Deny)).ConfigureAwait(false);
} }
var afterVch = e.After.VoiceChannel; var afterVch = e.After.VoiceChannel;
if (afterVch != null) if (afterVch != null && e.Server.AFKChannel != afterVch)
{ {
var textChannel = e.Server.FindChannels( var textChannel = e.Server.FindChannels(
GetChannelName(afterVch.Name), GetChannelName(afterVch.Name),