From e8f810f7cb556bfbc8aa283e2b9b04b92fb7eb80 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 5 Mar 2006 21:41:49 +0000 Subject: [PATCH] [Geobert] fix chatstate thing. See #1317 --- src/chat_control.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chat_control.py b/src/chat_control.py index 3e65efb96..8de4c2b42 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -900,10 +900,10 @@ class ChatControl(ChatControlBase): if cs and st in ('composing_only', 'all'): if contact.show == 'offline': chatstate = '' - elif st == 'all': + elif st == 'all' and contact.composing_jep == 'JEP-0085': chatstate = helpers.get_uf_chatstate(cs) - else: # 'composing_only' - if chatstate in ('composing', 'paused'): + elif st == 'composing_only' or contact.composing_jep == 'JEP-0022': + if cs in ('composing', 'paused'): # only print composing, paused chatstate = helpers.get_uf_chatstate(cs) else: