summaryrefslogtreecommitdiff
path: root/sleekxmpp/stanza
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/stanza')
-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'