summaryrefslogtreecommitdiff
path: root/src/connection.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-07-24 02:07:08 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-07-24 02:11:45 +0200
commit9c3fece96bee3c381cf0d7bd7022b46c858c6e1b (patch)
treeee3198ca6111800b3fe5c6c233e135500001a1c1 /src/connection.py
parent459471d7160295259683a6268e7e2e465d4dd2d0 (diff)
downloadpoezio-9c3fece96bee3c381cf0d7bd7022b46c858c6e1b.tar.gz
poezio-9c3fece96bee3c381cf0d7bd7022b46c858c6e1b.tar.bz2
poezio-9c3fece96bee3c381cf0d7bd7022b46c858c6e1b.tar.xz
poezio-9c3fece96bee3c381cf0d7bd7022b46c858c6e1b.zip
Use slixmpp
Diffstat (limited to 'src/connection.py')
-rw-r--r--src/connection.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/connection.py b/src/connection.py
index b5b7e12e..be55a90f 100644
--- a/src/connection.py
+++ b/src/connection.py
@@ -14,15 +14,15 @@ log = logging.getLogger(__name__)
import getpass
-import sleekxmpp
-from sleekxmpp.plugins.xep_0184 import XEP_0184
+import slixmpp
+from slixmpp.plugins.xep_0184 import XEP_0184
import common
import fixes
from common import safeJID
from config import config, options
-class Connection(sleekxmpp.ClientXMPP):
+class Connection(slixmpp.ClientXMPP):
"""
Receives everything from Jabber and emits the
appropriate signals
@@ -47,7 +47,7 @@ class Connection(sleekxmpp.ClientXMPP):
password = None
jid = safeJID(jid)
# TODO: use the system language
- sleekxmpp.ClientXMPP.__init__(self, jid, password,
+ slixmpp.ClientXMPP.__init__(self, jid, password,
lang=config.get('lang', 'en'))
force_encryption = config.get('force_encryption', True)
@@ -183,9 +183,9 @@ class Connection(sleekxmpp.ClientXMPP):
"""
if self.core:
self.core.outgoing_stanza(data)
- sleekxmpp.ClientXMPP.send_raw(self, data, now, reconnect)
+ slixmpp.ClientXMPP.send_raw(self, data, now, reconnect)
-class MatchAll(sleekxmpp.xmlstream.matcher.base.MatcherBase):
+class MatchAll(slixmpp.xmlstream.matcher.base.MatcherBase):
"""
Callback to retrieve all the stanzas for the XML tab
"""