[vlma-devel] commit: IRCNotifier.java: Authentication. (Adrien Grand )

git version control git at videolan.org
Tue Jun 17 20:06:07 CEST 2008


vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Tue Jun 17 20:07:22 2008 +0200| [49a0f3bb451cb97765404c465eaafc90eb3cf43b]

IRCNotifier.java: Authentication.

> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=49a0f3bb451cb97765404c465eaafc90eb3cf43b
---

 .../org/videolan/vlma/notifier/IRCNotifier.java    |    4 +++-
 vlma-daemon/src/main/resources/config.properties   |    1 +
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/vlma-core/src/main/java/org/videolan/vlma/notifier/IRCNotifier.java b/vlma-core/src/main/java/org/videolan/vlma/notifier/IRCNotifier.java
index 714cc04..e63b585 100644
--- a/vlma-core/src/main/java/org/videolan/vlma/notifier/IRCNotifier.java
+++ b/vlma-core/src/main/java/org/videolan/vlma/notifier/IRCNotifier.java
@@ -41,6 +41,7 @@ public class IRCNotifier extends Notifier {
 
     private IRCConnection conn;
     private String nick;
+    private String pass;
     private String chan;
     private String host;
     private int port;
@@ -62,10 +63,11 @@ public class IRCNotifier extends Notifier {
      */
     private void connect() throws IOException {
         nick = VLMa.getInstance().getString("vlma.notification.irc.nick");
+        pass = VLMa.getInstance().getString("vlma.notification.irc.pass");
         host = VLMa.getInstance().getString("vlma.notification.irc.host");
         port = VLMa.getInstance().getInt("vlma.notification.irc.port");
         chan = VLMa.getInstance().getString("vlma.notification.irc.chan");
-        conn = new IRCConnection(host, new int[] { port }, null, nick, "vlma", "VLMa");
+        conn = new IRCConnection(host, new int[] { port }, pass, nick, "vlma", "VLMa");
         conn.setEncoding("UTF-8");
         conn.addIRCEventListener(new Listener());
         conn.setPong(true);
diff --git a/vlma-daemon/src/main/resources/config.properties b/vlma-daemon/src/main/resources/config.properties
index 5a5a5d6..cc51414 100644
--- a/vlma-daemon/src/main/resources/config.properties
+++ b/vlma-daemon/src/main/resources/config.properties
@@ -17,6 +17,7 @@ vlma.data=${user.home}/.vlma
 vlma.notification.irc.chan =
 vlma.notification.irc.host = irc.freenode.net
 vlma.notification.irc.nick = vlma
+vlma.notification.irc.pass =
 vlma.notification.irc.port = 6667
 vlma.notification.mail.host = localhost
 vlma.notification.mail.recipients =



More information about the vlma-devel mailing list