summaryrefslogtreecommitdiff
path: root/sleekxmpp/stanza/message.py
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2009-12-10 07:33:59 +0000
committerNathan Fritz <fritzy@netflint.net>2009-12-10 07:33:59 +0000
commita031dd24a6c82745b7272d98229ebc69dd5f4811 (patch)
tree6fa65ae73a2faafe98cf8bfab24f92ed6bcc1ec0 /sleekxmpp/stanza/message.py
parent007b04dd3086a0b02865c924022db70bbd47445e (diff)
downloadslixmpp-a031dd24a6c82745b7272d98229ebc69dd5f4811.tar.gz
slixmpp-a031dd24a6c82745b7272d98229ebc69dd5f4811.tar.bz2
slixmpp-a031dd24a6c82745b7272d98229ebc69dd5f4811.tar.xz
slixmpp-a031dd24a6c82745b7272d98229ebc69dd5f4811.zip
tweaked stanzas for easy use
Diffstat (limited to 'sleekxmpp/stanza/message.py')
-rw-r--r--sleekxmpp/stanza/message.py6
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'