From: Florian Zeitz Date: Mon, 2 Jun 2008 18:47:59 +0000 (+0200) Subject: Make configuration easier X-Git-Url: https://cgit.babelmonkeys.de/?a=commitdiff_plain;h=46afe4274f6938caac99d6adc5623ec3fe6ab79e;p=xmppchat.git Make configuration easier --- 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);