@Override
    public void onPrivmsg(String target, IRCUser user, String msg) {
        if(target.equals(channel)) {
            StringTokenizer tokenizer = new StringTokenizer(msg);
            String command = tokenizer.nextToken();
            if(command.equals(".bg")) {
                if(tokenizer.hasMoreTokens()) {
                    String bg = tokenizer.nextToken();
                    String comment = null;
                    if(tokenizer.hasMoreElements()) {
                        comment = tokenizer.nextToken();
                    }
                    User usr = userDao.getUserByNick(user.getNick());
                    if(usr != null && isNumeric(bg)) {
                        bgDao.create(new BloodGlucose(usr,bg,comment));
                        logger.log("bg_added", user.getNick() + " " + bg + " " + usr.getUnit());
                    }
                }
            }
        }
    }