summaryrefslogtreecommitdiffstats
path: root/connection
diff options
context:
space:
mode:
Diffstat (limited to 'connection')
-rw-r--r--connection/xmpp.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/connection/xmpp.py b/connection/xmpp.py
index 1b2dcf1..2c45291 100644
--- a/connection/xmpp.py
+++ b/connection/xmpp.py
@@ -112,12 +112,8 @@ class VersionHandler(object):
class XMPPConnection(Client):
- _jid = JID('curunir@jabber.ccc.de/Orthanc')
- _password = ''
- _cert_file = 'cacert.pem'
-
- def __init__(self):
- Client.__init__(self, self._jid, self._password, tls_settings = TLSSettings(require = True, cacert_file = self._cert_file))
+ def __init__(self, config):
+ Client.__init__(self, JID(config['jid']), config['password'], tls_settings = TLSSettings(require = True, cacert_file = config['cacertfile']))
self.interface_providers = [
MessageHandler(self),