From fe4dd60b9544e751febd069343c91005e553a1f6 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sat, 16 Oct 2010 18:53:13 +0000 Subject: fix how we get the domain to connect to --- src/connection.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/connection.py b/src/connection.py index ae480e22..5432a823 100644 --- a/src/connection.py +++ b/src/connection.py @@ -50,5 +50,9 @@ class Connection(sleekxmpp.ClientXMPP): def start(self): # TODO, try multiple servers - if self.connect((config.get('server', 'anon.louiz.org'), config.get('port', 5222))): + if self.anon: + domain = config.get('server', 'anon.louiz.org') + else: + _, domain = config.get('jid', '').split('@', 1) + if self.connect((domain, config.get('port', 5222))): self.process(threaded=True) -- cgit v1.2.3