Author: bct Date: 2008-07-15 01:21:08 +0200 (Tue, 15 Jul 2008) New Revision: 9930
Modified: trunk/src/gajim.py Log: fix clicking notification when someone logs in
Modified: trunk/src/gajim.py =================================================================== --- trunk/src/gajim.py 2008-07-14 05:01:22 UTC (rev 9929) +++ trunk/src/gajim.py 2008-07-14 23:21:08 UTC (rev 9930) @@ -2135,11 +2135,12 @@ elif type_ in ('printed_chat', 'chat', ''): # '' is for log in/out notifications
- 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_ != '': + 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_chat': ctrl = event.parameters[0]