summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-10-07 01:14:01 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-10-07 01:14:01 +0100
commit1252f21e10c81b1c61f07c63ae204f8275eb0c8a (patch)
tree05d5c60969927b94d0574c077fa22c0838ddf48b
parent3c9eac5dc99eb809584d4877e1eea603c97be3da (diff)
downloadpoezio-1252f21e10c81b1c61f07c63ae204f8275eb0c8a.tar.gz
poezio-1252f21e10c81b1c61f07c63ae204f8275eb0c8a.tar.bz2
poezio-1252f21e10c81b1c61f07c63ae204f8275eb0c8a.tar.xz
poezio-1252f21e10c81b1c61f07c63ae204f8275eb0c8a.zip
Replace sendPresence() with send_presence(), fix adding a contact.
-rw-r--r--poezio/core/handlers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py
index 0427a2d0..62fc0731 100644
--- a/poezio/core/handlers.py
+++ b/poezio/core/handlers.py
@@ -758,8 +758,8 @@ class HandlerCore:
if contact and contact.subscription in ('from', 'both'):
return
elif contact and contact.subscription == 'to':
- self.core.xmpp.sendPresence(pto=jid, ptype='subscribed')
- self.core.xmpp.sendPresence(pto=jid)
+ self.core.xmpp.send_presence(pto=jid, ptype='subscribed')
+ self.core.xmpp.send_presence(pto=jid)
else:
if not contact:
contact = roster.get_and_set(jid)