plugin sec_otr: a trigger was not returning True

This commit is contained in:
souliane 2014-10-20 12:57:27 +02:00
commit eaa85cb951

View file

@ -473,7 +473,7 @@ class OTR(object):
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)