From 3f88abaf27500cf80a0b308e776e3a1eaac145eb Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 3 Nov 2008 16:36:15 +0000 Subject: [PATCH] fix tb when we receive pep info from a room. Fixes #4449 --- src/common/pep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/pep.py b/src/common/pep.py index c844fbf5a..bc0d7198f 100644 --- a/src/common/pep.py +++ b/src/common/pep.py @@ -243,7 +243,7 @@ def handle_mood(account, jid, mood=None, text=None, retract=False): gajim.interface.roster.draw_account(account) gajim.interface.roster.draw_mood(user, account) ctrl = gajim.interface.msg_win_mgr.get_control(user, account) - if ctrl: + if ctrl and ctrl.type_id == 'chat': ctrl.update_mood() def user_tune(items, name, jid):