{
}
public synchronized void elementAdded(final ListEvent e)
{
final IChannel c = (IChannel)e.getElement();
ChatSubPanel csp;
if (ChatManager.getInstance().isAutoJoinChannel(c)) {
csp = (ChatSubPanel)autoJoinPanelsByChannelName.get
(c.getName().toLowerCase());
if (csp != null) {
csp.addChannel(c);
panelsByChannel.put(c, csp);
return;
}
else {
csp = new ChatSubPanel(c);
autoJoinPanelsByChannelName.put
(c.getName().toLowerCase(), csp);
}
}
else {
csp = new ChatSubPanel(c);
}
panelsByChannel.put(c, csp);
final ChatSubPanel tab = csp;
Runnable runner = new Runnable()
{
public void run()
{
jtp.addTab(c.getName(), tab);
if (!ChatManager.getInstance().isAutoJoinChannel(c)) {
XNapFrame.setFocusTo("chat");
if (prefs.getBlinkOnChannelJoin()) {
XNapFrame.getInstance().chatBlink();
}