public void listenModLog(String username,String token){
  if (!hasServer()) {
    return;
  }
  if (modLogListen.containsKey(username)) {
    return;
  }
  this.token=token;
  long userId=getUserId(username);
  modLogListen.put(username,userId);
  LOGGER.info("[PubSub] LISTEN ModLog " + username + " "+ userId);
  if (userId != -1) {
    sendListenModLog(userId,true);
  }
}

public void listenModLog ( String username , String token ) { if ( ! hasServer ( ) ) { return ; } if ( modLogListen . containsKey ( username ) ) { return ; } this . token = token ; long userId = getUserId ( username ) ; modLogListen . put ( username , userId ) ; LOGGER . info ( "[PubSub] LISTEN ModLog " + username + " " + userId ) ; if ( userId != - 1 ) { sendListenModLog ( userId , true ) ; } }
start receiving the modlog for the given channel ( username ) . the token is requires to authenticate .
