ignore resource when we get a subscription request

This commit is contained in:
Yann Leboulanger 2007-10-09 19:52:09 +00:00
parent 5b940a2416
commit af681cc5ba
1 changed files with 1 additions and 1 deletions

View File

@ -1945,7 +1945,7 @@ returns the session that we last sent a message to.'''
else:
if not status:
status = _('I would like to add you to my roster.')
self.dispatch('SUBSCRIBE', (who, status, user_nick))
self.dispatch('SUBSCRIBE', (jid_stripped, status, user_nick))
elif ptype == 'subscribed':
if jid_stripped in self.automatically_added:
self.automatically_added.remove(jid_stripped)