summaryrefslogtreecommitdiff
path: root/examples/echo_client.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-08-13 20:58:53 -0700
committerLance Stout <lancestout@gmail.com>2011-08-13 20:58:53 -0700
commit01061a0355b05c8452b1ef8ca998cd2c51ab4c9e (patch)
tree47c95d1a9b9a9e7ebd1e302786086894c8f757bd /examples/echo_client.py
parent9fdd85d9f18001ed8f90d6e1142bb9c03255a59c (diff)
downloadslixmpp-01061a0355b05c8452b1ef8ca998cd2c51ab4c9e.tar.gz
slixmpp-01061a0355b05c8452b1ef8ca998cd2c51ab4c9e.tar.bz2
slixmpp-01061a0355b05c8452b1ef8ca998cd2c51ab4c9e.tar.xz
slixmpp-01061a0355b05c8452b1ef8ca998cd2c51ab4c9e.zip
More documentation!
Finished the echo bot quickstart. Added placeholders for other guides we need.
Diffstat (limited to 'examples/echo_client.py')
-rwxr-xr-xexamples/echo_client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/echo_client.py b/examples/echo_client.py
index dadf3b4e..cd1b1d02 100755
--- a/examples/echo_client.py
+++ b/examples/echo_client.py
@@ -76,7 +76,8 @@ class EchoBot(sleekxmpp.ClientXMPP):
for stanza objects and the Message stanza to see
how it may be used.
"""
- msg.reply("Thanks for sending\n%(body)s" % msg).send()
+ if msg['type'] in ('chat', 'normal'):
+ msg.reply("Thanks for sending\n%(body)s" % msg).send()
if __name__ == '__main__':