Commit f43ea024 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Presence: Send nickname on subscribe

parent 739e826e
...@@ -342,7 +342,10 @@ def subscribe(self, jid, msg=None, name='', groups=None, auto_auth=False): ...@@ -342,7 +342,10 @@ def subscribe(self, jid, msg=None, name='', groups=None, auto_auth=False):
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', status=msg) self.send_presence(jid,
'subscribe',
status=msg,
nick=app.nicks[self._account])
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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment