diff src/plugins/plugin_sec_otr.py @ 1249:3be9d8ab2e15

plugin sec_otr: a trigger was not returning True
author souliane <souliane@mailoo.org>
date Mon, 20 Oct 2014 12:57:27 +0200
parents 8b891f9be183
children faa1129559b8
line wrap: on
line diff
--- a/src/plugins/plugin_sec_otr.py	Sun Oct 19 15:25:04 2014 +0200
+++ b/src/plugins/plugin_sec_otr.py	Mon Oct 20 12:57:27 2014 +0200
@@ -473,7 +473,7 @@
 
     def presenceReceivedTrigger(self, entity, show, priority, statuses, profile):
         if show != "unavailable":
-            return
+            return True
         if not entity.resource:
             entity.resource = self.host.memory.getLastResource(entity, profile)  # FIXME: temporary and unsecure, must be changed when frontends are refactored
         otrctx = self.context_managers[profile].getContextForUser(entity)