@Override
    public boolean execute(final CommandSender sender, final String[] split) {
        if (sender instanceof Player) {
            if (MonsterIRC.getHandleManager().getPermissionsHandler() != null) {
                if (!MonsterIRC.getHandleManager().getPermissionsHandler()
                        .hasCommandPerms((Player) sender, this)) {
                    sender.sendMessage("[IRC] You don't have permission to preform that command.");
                    return true;
                }
            } else {
                sender.sendMessage("[IRC] PEX not detected, unable to run any IRC commands.");
                return true;
            }
        }
        if (split.length < 3) {
            sender.sendMessage("[IRC] Please specify a channel to join!");
            return false;
        }
        if (split[2] == null) {
            sender.sendMessage("[IRC] Please specify a channel to join!");
            return false;
        }
        for (final IRCChannel c : Variables.channels) {
            if (c.getChannel().equalsIgnoreCase(split[2])) {
                try {
                    MonsterIRC.getHandleManager().getIRCHandler().join(c);
                } catch (final IOException e) {
                    sender.sendMessage("Error joining the channel!");
                    return true;
                }
                sender.sendMessage("[IRC] Successfully joined the channel!");
                return true;
            }
        }
        sender.sendMessage("[IRC] Could not join that channel!");
        return true;
    }