echo_bot: reply as plain if NOT encrypted
important detail. Got lost in translation between rewrites with the Callback/CoroutineCallback Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
89bc05b0c3
commit
31380cd726
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue