Ejemplo n.º 1
0
  @Override
  public void messageReceived(IrcMessage message) {
    if (message.getMessageType() == IrcMessageType.PrivateMessage
        && this.check(message.getMessage())) {
      IrcUser ircUser = IrcUser.tryParseFromIrcMessage(message.getFullMessage());

      if (ircUser != null && this.object.isAdminHost(ircUser.getHost())) {
        this.receiver = ircUser.getNick();

        this.execute();
      }
    }
  }