示例#1
0
文件: Reset.java 项目: vityafx/jaibo
  @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();
      }
    }
  }