diff src/plugins/plugin_exp_parrot.py @ 2128:aa94f33fd2ad

plugin otr: various improvments: - messageSend trigger now use pre_xml_treatments so it doesn't block other triggers of higher priority - text commands now use a very high priority, as it is local command and should not be blocked in most of cases - new otrState signal, to send state change to frontends - history is not skipped anymore, a future option may change this behaviour - OTR trigger are skipped on groupchat messages - context_manager is now in client instead of being global to plugin - removed fixPotr as it is fixed upstream note triggers should be improved for encryption methods, as skipping an encrypter may break security, but putting it in top priority may break nice features. fix bug 170
author Goffi <goffi@goffi.org>
date Wed, 01 Feb 2017 21:44:24 +0100
parents 200cd707a46d
children 1d3f73e065e1
line wrap: on
line diff
--- a/src/plugins/plugin_exp_parrot.py	Tue Jan 31 22:35:59 2017 +0100
+++ b/src/plugins/plugin_exp_parrot.py	Wed Feb 01 21:44:24 2017 +0100
@@ -35,16 +35,17 @@
     "recommendations": [C.TEXT_CMDS],
     "main": "Exp_Parrot",
     "handler": "no",
-    "description": _("""Implementation of parrot mode (repeat messages between 2 entities)""")
+    "description": _(u"""Implementation of parrot mode (repeat messages between 2 entities)""")
 }
 
 
 class Exp_Parrot(object):
     """Parrot mode plugin: repeat messages from one entity or MUC room to another one"""
-    #XXX: This plugin can be potentially dangerous if we don't trust entities linked
-    #     this is specially true if we have other triggers.
-    #     messageSendTrigger avoid other triggers execution, it's deactivated to allow
-    #     /unparrot command in text commands plugin.
+    # XXX: This plugin can be potentially dangerous if we don't trust entities linked
+    #      this is specially true if we have other triggers.
+    #      messageSendTrigger avoid other triggers execution, it's deactivated to allow
+    #      /unparrot command in text commands plugin.
+    # FIXME: potentially unsecure, specially with e2e encryption
 
     def __init__(self, host):
         log.info(_("Plugin Parrot initialization"))
@@ -54,7 +55,7 @@
         try:
             self.host.plugins[C.TEXT_CMDS].registerTextCommands(self)
         except KeyError:
-            log.info(_("Text commands not available"))
+            log.info(_(u"Text commands not available"))
 
     #def messageSendTrigger(self, client, mess_data, treatments):
     #    """ Deactivate other triggers if recipient is in parrot links """