don't ask vcard when we get an error presence

This commit is contained in:
Yann Leboulanger 2006-01-08 00:30:58 +00:00
parent f8f200ebe7
commit c39a69de27
1 changed files with 1 additions and 1 deletions

View File

@ -531,7 +531,7 @@ class Connection:
self.dispatch('ERROR_ANSWER', ('', jid_stripped, self.dispatch('ERROR_ANSWER', ('', jid_stripped,
errmsg, errcode)) errmsg, errcode))
if avatar_sha: if avatar_sha and ptype != 'error':
if self.vcard_shas.has_key(jid_stripped): if self.vcard_shas.has_key(jid_stripped):
if avatar_sha != self.vcard_shas[jid_stripped]: if avatar_sha != self.vcard_shas[jid_stripped]:
# avatar has been updated # avatar has been updated