]> git.babelmonkeys.de Git - xmppchat.git/commitdiff
Make configuration easier
authorFlorian Zeitz <florob@babelmonkeys.de>
Mon, 2 Jun 2008 18:47:59 +0000 (20:47 +0200)
committerFlorian Zeitz <florob@babelmonkeys.de>
Mon, 2 Jun 2008 18:47:59 +0000 (20:47 +0200)
main.js

diff --git a/main.js b/main.js
index f1f878ac9f4c0ae61f9c9f2d3a0da69f77de7387..13ab10a73b8c38aa5495d740d14f47430c3607aa 100644 (file)
--- a/main.js
+++ b/main.js
@@ -1,5 +1,8 @@
 function doLogin(aForm) {
        room = 'guests@conference.babelmonkeys.de';
+       domain = 'babelmonkeys.de'
+       user = 'muckl';
+       password = 'ooje0OjuJeekaek6';
        if (!aForm.nickname.value)
                return false;
        try {
@@ -12,10 +15,10 @@ function doLogin(aForm) {
                setupHandlers(con);
                
                oArgs = new Object();
-               oArgs.domain = 'babelmonkeys.de';
-               oArgs.username = 'muckl';
+               oArgs.domain = domain;
+               oArgs.username = user;
                oArgs.resource = randomString();
-               oArgs.pass = 'ooje0OjuJeekaek6';
+               oArgs.pass = password;
                con.connect(oArgs);
        } catch (e) {
                alert(e);