diff options
author | Nathan Fritz <fritzy@netflint.net> | 2010-01-08 07:01:19 +0000 |
---|---|---|
committer | Nathan Fritz <fritzy@netflint.net> | 2010-01-08 07:01:19 +0000 |
commit | 218c7318e040cd8acb90dfc445b7388a37756d8b (patch) | |
tree | 41aa0dcd3927632e11117357b440ece7f7814252 /sleekxmpp/stanza/message.py | |
parent | 137ef61523d178a12c08da3f544e81a3135f3cf7 (diff) | |
download | slixmpp-218c7318e040cd8acb90dfc445b7388a37756d8b.tar.gz slixmpp-218c7318e040cd8acb90dfc445b7388a37756d8b.tar.bz2 slixmpp-218c7318e040cd8acb90dfc445b7388a37756d8b.tar.xz slixmpp-218c7318e040cd8acb90dfc445b7388a37756d8b.zip |
* added tests
Diffstat (limited to 'sleekxmpp/stanza/message.py')
-rw-r--r-- | sleekxmpp/stanza/message.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 |