summaryrefslogtreecommitdiff
path: root/examples/echo_client.py
diff options
context:
space:
mode:
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__':