From 46afe4274f6938caac99d6adc5623ec3fe6ab79e Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Mon, 2 Jun 2008 20:47:59 +0200 Subject: [PATCH] Make configuration easier --- main.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index f1f878a..13ab10a 100644 --- 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); -- 2.39.5