From 218c7318e040cd8acb90dfc445b7388a37756d8b Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Fri, 8 Jan 2010 07:01:19 +0000 Subject: * added tests --- sleekxmpp/stanza/message.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sleekxmpp') diff --git a/sleekxmpp/stanza/message.py b/sleekxmpp/stanza/message.py index c8d54f13..a3f2901c 100644 --- a/sleekxmpp/stanza/message.py +++ b/sleekxmpp/stanza/message.py @@ -4,7 +4,7 @@ from . error import Error from . rootstanza import RootStanza class Message(RootStanza): - interfaces = set(('type', 'to', 'from', 'id', 'body', 'subject')) + interfaces = set(('type', 'to', 'from', 'id', 'body', 'subject', 'groupchat')) types = set((None, 'normal', 'chat', 'headline', 'error', 'groupchat')) sub_interfaces = set(('body', 'subject')) name = 'message' @@ -23,6 +23,8 @@ class Message(RootStanza): def reply(self, body=None): StanzaBase.reply(self) + if self['type'] == 'groupchat': + self['to'] = self['to'].bare del self['id'] if body is not None: self['body'] = body -- cgit v1.2.3