Esempio n. 1
0
 public List<String> getChannels() {
   List<String> channels = new ArrayList<String>();
   for (Channel c : Herochat.getChannelManager().getChannels()) {
     channels.add(c.getName());
   }
   return channels;
 }
Esempio n. 2
0
  public Bridge(String craftIRCTag, String GameChannel) {
    this.craftIRCTag = craftIRCTag;

    if (GameChannel.equals("*")) {
      this.getAll = true;
      this.GameChannel = null;
    } else {
      this.GameChannel = Herochat.getChannelManager().getChannel(GameChannel);
    }

    endPoint = new BridgeEndPoint(this.GameChannel);
    UIRCBridge.craftirc.registerEndPoint(craftIRCTag, endPoint);
  }