diff options
Diffstat (limited to 'src/connection.py')
-rw-r--r-- | src/connection.py | 6 |
1 files changed, 5 insertions, 1 deletions
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) |