prevent TB when we get a conference vcard. Fixes #1887

This commit is contained in:
Yann Leboulanger 2006-04-26 08:11:16 +00:00
parent f3457a8f0c
commit 98f9525a43
1 changed files with 1 additions and 1 deletions

View File

@ -781,7 +781,7 @@ class ConnectionVcard:
jid, nick = gajim.get_room_and_nick_from_fjid(full_jid)
puny_jid = helpers.sanitize_filename(jid)
path = os.path.join(gajim.VCARD_PATH, puny_jid)
if jid in self.room_jids:
if jid in self.room_jids or os.path.isdir(path):
# remove room_jid file if needed
if os.path.isfile(path):
os.remove(path)