From 1252f21e10c81b1c61f07c63ae204f8275eb0c8a Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 7 Oct 2016 01:14:01 +0100 Subject: Replace sendPresence() with send_presence(), fix adding a contact. --- poezio/core/handlers.py | 4 ++-- 1 file 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) -- cgit v1.2.3