public List<String> getChannels() { List<String> channels = new ArrayList<String>(); for (Channel c : Herochat.getChannelManager().getChannels()) { channels.add(c.getName()); } return channels; }
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); }