fix clicking notification when someone logs in

This commit is contained in:
Brendan Taylor 2008-07-14 23:21:08 +00:00
parent 9d98117f21
commit d541b42236
1 changed files with 6 additions and 5 deletions

View File

@ -2135,11 +2135,12 @@ class Interface:
elif type_ in ('printed_chat', 'chat', ''): elif type_ in ('printed_chat', 'chat', ''):
# '' is for log in/out notifications # '' is for log in/out notifications
event = gajim.events.get_first_event(account, fjid, type_) if type_ != '':
if not event: event = gajim.events.get_first_event(account, fjid, type_)
event = gajim.events.get_first_event(account, jid, type_) if not event:
if not event: event = gajim.events.get_first_event(account, jid, type_)
return if not event:
return
if type_ == 'printed_chat': if type_ == 'printed_chat':
ctrl = event.parameters[0] ctrl = event.parameters[0]