comparison 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
comparison
equal deleted inserted replaced
1248:77a4592816f6 1249:3be9d8ab2e15
471 log.debug(u"sending message unencrypted") 471 log.debug(u"sending message unencrypted")
472 return True 472 return True
473 473
474 def presenceReceivedTrigger(self, entity, show, priority, statuses, profile): 474 def presenceReceivedTrigger(self, entity, show, priority, statuses, profile):
475 if show != "unavailable": 475 if show != "unavailable":
476 return 476 return True
477 if not entity.resource: 477 if not entity.resource:
478 entity.resource = self.host.memory.getLastResource(entity, profile) # FIXME: temporary and unsecure, must be changed when frontends are refactored 478 entity.resource = self.host.memory.getLastResource(entity, profile) # FIXME: temporary and unsecure, must be changed when frontends are refactored
479 otrctx = self.context_managers[profile].getContextForUser(entity) 479 otrctx = self.context_managers[profile].getContextForUser(entity)
480 otrctx.disconnect() 480 otrctx.disconnect()
481 return True 481 return True