changeset 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 77a4592816f6
children 1f0ae61536aa
files src/plugins/plugin_sec_otr.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)