parent
432704005d
commit
f82cd95f2c
|
@ -52,6 +52,9 @@ class Presence:
|
||||||
return
|
return
|
||||||
|
|
||||||
log.info('Received from %s', stanza.getFrom())
|
log.info('Received from %s', stanza.getFrom())
|
||||||
|
if nbxmpp.isErrorNode(stanza):
|
||||||
|
log.info('Error:\n%s', stanza)
|
||||||
|
|
||||||
app.nec.push_incoming_event(
|
app.nec.push_incoming_event(
|
||||||
NetworkEvent('raw-pres-received',
|
NetworkEvent('raw-pres-received',
|
||||||
conn=self._con,
|
conn=self._con,
|
||||||
|
@ -166,7 +169,7 @@ class Presence:
|
||||||
item.addChild('group').setData(group)
|
item.addChild('group').setData(group)
|
||||||
self._con.connection.send(iq)
|
self._con.connection.send(iq)
|
||||||
|
|
||||||
self.send_presence(jid, 'subscribe', msg)
|
self.send_presence(jid, 'subscribe', status=msg)
|
||||||
|
|
||||||
def get_presence(self, to=None, typ=None, priority=None,
|
def get_presence(self, to=None, typ=None, priority=None,
|
||||||
show=None, status=None, nick=None, caps=True,
|
show=None, status=None, nick=None, caps=True,
|
||||||
|
|
Loading…
Reference in New Issue