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

This commit is contained in:
Master Kwoth committed 2016-07-11 11:50:38 +02:00
1 parent 98f6498711
commit 3bc636774f
1 file changed
+1 -1
@@ -56,7 +56,7 @@ namespace NadekoBot.Modules.Administration.Commands
sendMessages: PermValue.Deny)).ConfigureAwait(false);
}
var afterVch = e.After.VoiceChannel;
if (afterVch != null)
if (afterVch != null && e.Server.AFKChannel != afterVch)
{
var textChannel = e.Server.FindChannels(
GetChannelName(afterVch.Name),