diff options
author | Lance Stout <lancestout@gmail.com> | 2011-08-13 20:58:53 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-08-13 20:58:53 -0700 |
commit | 01061a0355b05c8452b1ef8ca998cd2c51ab4c9e (patch) | |
tree | 47c95d1a9b9a9e7ebd1e302786086894c8f757bd /examples | |
parent | 9fdd85d9f18001ed8f90d6e1142bb9c03255a59c (diff) | |
download | slixmpp-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')
-rwxr-xr-x | examples/echo_client.py | 3 |
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__': |