summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)