summaryrefslogtreecommitdiff
path: root/src/connection.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-11-29 18:36:54 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-11-29 18:36:54 +0000
commitcbcec6a798557d4905554c446a5291ac2c1f46ec (patch)
treef66ebc7cf2e930f7c712157ba1ea2734f69a0a6d /src/connection.py
parent69e335c0ad073069291ef45a1fcfc2f1d6462309 (diff)
downloadpoezio-cbcec6a798557d4905554c446a5291ac2c1f46ec.tar.gz
poezio-cbcec6a798557d4905554c446a5291ac2c1f46ec.tar.bz2
poezio-cbcec6a798557d4905554c446a5291ac2c1f46ec.tar.xz
poezio-cbcec6a798557d4905554c446a5291ac2c1f46ec.zip
completion of the jid's node when doing /join ro@some.server.fr/[TAB](it completes the 'ro' part \o/. Also a begining of /list command, but that does nothing
Diffstat (limited to 'src/connection.py')
-rw-r--r--src/connection.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/connection.py b/src/connection.py
index e313af37..073e216e 100644
--- a/src/connection.py
+++ b/src/connection.py
@@ -18,6 +18,9 @@
Defines the Connection class
"""
+import logging
+log = logging.getLogger(__name__)
+
from gettext import (bindtextdomain, textdomain, bind_textdomain_codeset,
gettext as _)
@@ -45,10 +48,12 @@ class Connection(sleekxmpp.ClientXMPP):
jid = '%s/%s' % (config.get('server', 'anon.louiz.org'), resource)
password = None
sleekxmpp.ClientXMPP.__init__(self, jid, password, ssl=True)
+ self.registerPlugin('xep_0030')
self.registerPlugin('xep_0045')
-
+
def start(self):
# TODO, try multiple servers
+ # With anon auth.
# (domain, config.get('port', 5222))
custom_host = config.get('custom_host', '')
custom_port = config.get('custom_port', -1)