From 0e9fa33591cd4138165141ff036930ad915f77c6 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sun, 29 Jan 2017 13:34:11 +0100 Subject: [PATCH] small v+t fix --- .../Modules/Administration/Commands/VoicePlusTextCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Administration/Commands/VoicePlusTextCommands.cs b/src/NadekoBot/Modules/Administration/Commands/VoicePlusTextCommands.cs index 1bd135d8..9d92ff98 100644 --- a/src/NadekoBot/Modules/Administration/Commands/VoicePlusTextCommands.cs +++ b/src/NadekoBot/Modules/Administration/Commands/VoicePlusTextCommands.cs @@ -82,7 +82,7 @@ namespace NadekoBot.Modules.Administration sendMessages: PermValue.Deny)).ConfigureAwait(false); } var afterVch = after.VoiceChannel; - if (afterVch != null && guild.AFKChannel.Id != afterVch.Id) + if (afterVch != null && guild.AFKChannel?.Id != afterVch.Id) { ITextChannel textChannel = guild.TextChannels .Where(t => t.Name == GetChannelName(afterVch.Name).ToLowerInvariant())