diff --git a/examples/echo_client.py b/examples/echo_client.py index 839a7c2..a222e9b 100644 --- a/examples/echo_client.py +++ b/examples/echo_client.py @@ -134,7 +134,7 @@ class EchoBot(ClientXMPP): if mtype not in ('chat', 'normal'): return None - if self['xep_0384'].is_encrypted(msg): # Already handled by 'encrypted_handler' + if not self['xep_0384'].is_encrypted(msg): if self.debug_level == LEVEL_DEBUG: await self.plain_reply(mto, mtype, 'Echo unencrypted message:%(body)s' % msg) return None