Replace sendPresence() with send_presence(), fix adding a contact.

This commit is contained in:
Emmanuel Gil Peyrot 2016-10-07 01:14:01 +01:00
parent 3c9eac5dc9
commit 1252f21e10

View file

@ -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)