@Override
    public void onMessage(final IRCChannel channel, final String sender,
            final String message) {
        if (message.startsWith(Variables.commandPrefix)) {
            instance.getCommandManager().onIRCCommand(sender, message, channel);
        } else if (!Variables.passOnName
                && !Variables.muted.contains(sender.toLowerCase())) {
            IRC.sendMessageToGame(channel, sender, message);
        } else if (Variables.passOnName && message.startsWith(Variables.name)
                && !Variables.muted.contains(sender.toLowerCase())) {
            IRC.sendMessageToGame(channel, sender,
                    message.substring(Variables.name.length()));
        }
    }