From 8fed8ac0edd3c9879944d45125d5b5f84cd107eb Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 20 Jun 2008 07:17:27 +0000 Subject: [PATCH] handle unknown message type as 'normal'. fixes #3977 --- src/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session.py b/src/session.py index 917cd2c62..1df578c74 100644 --- a/src/session.py +++ b/src/session.py @@ -65,7 +65,7 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession): msg_type = msg.getType() subject = msg.getSubject() - if not msg_type: + if not msg_type or msg_type not in ('chat', 'groupchat', 'error'): msg_type = 'normal' msg_id = None