Skip to content
Permalink
Browse files

Fixes #673

Inverted check
  • Loading branch information...
Splamy committed Nov 8, 2019
1 parent 7109787 commit 7e07520272c24ef426df9f5ddda4d92ed7170b48
Showing with 1 addition and 1 deletion.
  1. +1 −1 TS3AudioBot/MainCommands.cs
@@ -190,7 +190,7 @@ public static JsonValue<bool> CommandBotCommander(Ts3Client ts3Client)
public static void CommandBotCome(Ts3Client ts3Client, ClientCall invoker, string password = null)
{
var channel = invoker?.ChannelId;
if (channel != null)
if (channel == null)
throw new CommandException(strings.error_no_target_channel, CommandExceptionReason.CommandError);
ts3Client.MoveTo(channel.Value, password).UnwrapThrow();
}

0 comments on commit 7e07520

Please sign in to comment.
You can’t perform that action at this time.