Пример #1
0
  public void processNumeric(String numeric, HashMap eventDescription) {
    int temp = Integer.parseInt(numeric);

    String type = "NUMERIC";

    if (output.isSet("REPL_" + numeric)) {
      type = "REPL_" + numeric;
    }

    if (isWhoisNumeric(temp)) /* looking for /whois related numerics */ {
      if (!(allowAway.isChatEvent(numeric, eventDescription)
          && allowAway.fireChatEvent(eventDescription) == ChatListener.EVENT_HALT)) {
        output.fireSetConfused(eventDescription, null, "whois", type);
      } else {
        // halting numeric... its a numeric we don't want to display
      }
    } else {
      output.fireSetStatus(eventDescription, type);
    }
  }