prevent traceback. Fixes #7572

This commit is contained in:
Yann Leboulanger 2013-11-30 09:48:18 +01:00
parent 5095bc6598
commit a7a8354402
1 changed files with 2 additions and 0 deletions

View File

@ -1688,6 +1688,8 @@ class Interface:
event = gajim.events.get_first_event(account, fjid, type_)
if not event:
event = gajim.events.get_first_event(account, jid, type_)
if not event:
return
if type_ == 'printed_pm':
ctrl = event.parameters[2]