From 01061a0355b05c8452b1ef8ca998cd2c51ab4c9e Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sat, 13 Aug 2011 20:58:53 -0700 Subject: More documentation! Finished the echo bot quickstart. Added placeholders for other guides we need. --- examples/echo_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/echo_client.py') 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__': -- cgit v1.2.3