From d541b422362a9c4d86b595a9045b47276a52aa27 Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Mon, 14 Jul 2008 23:21:08 +0000 Subject: [PATCH] fix clicking notification when someone logs in --- src/gajim.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/gajim.py b/src/gajim.py index 94d0fc7a3..b375b60f7 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -2135,11 +2135,12 @@ class Interface: 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]