diff --git a/.classpath b/.classpath index f87f577c0..0a8088ba9 100755 --- a/.classpath +++ b/.classpath @@ -64,7 +64,6 @@ - @@ -84,10 +83,6 @@ - - - - - + diff --git a/lib/installer-exclude/irc-api-1.0-sources.jar b/lib/installer-exclude/irc-api-1.0-sources.jar new file mode 100644 index 000000000..226fa9365 Binary files /dev/null and b/lib/installer-exclude/irc-api-1.0-sources.jar differ diff --git a/lib/installer-exclude/pircbot.jar b/lib/installer-exclude/pircbot.jar deleted file mode 100644 index 191708be0..000000000 Binary files a/lib/installer-exclude/pircbot.jar and /dev/null differ diff --git a/src/net/java/sip/communicator/impl/protocol/irc/IrcStack.java b/src/net/java/sip/communicator/impl/protocol/irc/IrcStack.java index 1eab53cc8..31017e75c 100644 --- a/src/net/java/sip/communicator/impl/protocol/irc/IrcStack.java +++ b/src/net/java/sip/communicator/impl/protocol/irc/IrcStack.java @@ -21,7 +21,9 @@ import com.ircclouds.irc.api.state.*; /** - * An implementation of the PircBot IRC stack. + * An implementation of IRC using the irc-api library. + * + * @author Danny van Heumen */ public class IrcStack { @@ -132,18 +134,21 @@ public void connect(String host, int port, String password, final Exception[] exceptionContainer = new Exception[1]; this.irc = new IRCApiImpl(true); - // FIXME Currently, the secure connection is created by - // explicitly creating an SSLContext for 'SSL'. According - // to Ingo (in a mailing list conversation) it is better to - // use the CertificateService for this. This should be - // implemented in the irc-api library, though. - this.params.setServer(new IRCServer(host, port, password, secureConnection)); + // FIXME Currently, the secure connection is created by + // explicitly creating an SSLContext for 'SSL'. According + // to Ingo (in a mailing list conversation) it is better to + // use the CertificateService for this. This should be + // implemented in the irc-api library, though. + this.params.setServer(new IRCServer(host, port, password, + secureConnection)); synchronized (this.irc) { - // register a server listener in order to catch server and cross-/multi-channel messages + // register a server listener in order to catch server and + // cross-/multi-channel messages this.irc.addListener(new ServerListener()); // start connecting to the specified server ... - // TODO Catch IOException/SocketException in case of early failure in call to connect() + // TODO Catch IOException/SocketException in case of early failure + // in call to connect() this.irc.connect(this.params, new Callback() { @@ -175,7 +180,8 @@ public void onFailure(Exception e) // wait while the irc connection is being established ... try { - System.out.println("Waiting for the connection to be established ..."); + System.out + .println("Waiting for the connection to be established ..."); this.irc.wait(); if (this.connectionState != null && this.connectionState.isConnected())