diff options
author | Nathan Fritz <fritzy@netflint.net> | 2009-12-10 07:33:59 +0000 |
---|---|---|
committer | Nathan Fritz <fritzy@netflint.net> | 2009-12-10 07:33:59 +0000 |
commit | a031dd24a6c82745b7272d98229ebc69dd5f4811 (patch) | |
tree | 6fa65ae73a2faafe98cf8bfab24f92ed6bcc1ec0 /sleekxmpp/stanza | |
parent | 007b04dd3086a0b02865c924022db70bbd47445e (diff) | |
download | slixmpp-a031dd24a6c82745b7272d98229ebc69dd5f4811.tar.gz slixmpp-a031dd24a6c82745b7272d98229ebc69dd5f4811.tar.bz2 slixmpp-a031dd24a6c82745b7272d98229ebc69dd5f4811.tar.xz slixmpp-a031dd24a6c82745b7272d98229ebc69dd5f4811.zip |
tweaked stanzas for easy use
Diffstat (limited to 'sleekxmpp/stanza')
-rw-r--r-- | sleekxmpp/stanza/message.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sleekxmpp/stanza/message.py b/sleekxmpp/stanza/message.py index 37e2e5f3..3f9eb2ba 100644 --- a/sleekxmpp/stanza/message.py +++ b/sleekxmpp/stanza/message.py @@ -19,6 +19,12 @@ class Message(StanzaBase): self['type'] = 'normal' return self + def reply(self, body=None): + StanzaBase.reply(self) + if body is not None: + self['body'] = body + return self + if __name__ == '__main__': m = Message() m['to'] = 'me' |