comparison src/plugins/plugin_misc_watched.py @ 1599:e2ed8009e66e

backend, bridge, frontends: actionNew has now a security_limit argument + added some docstring to explain data argument
author Goffi <goffi@goffi.org>
date Sat, 14 Nov 2015 19:21:56 +0100
parents 8d61160ee4b8
children d17772b0fe22
comparison
equal deleted inserted replaced
1598:b144babc2658 1599:e2ed8009e66e
74 old_show = C.PRESENCE_UNAVAILABLE 74 old_show = C.PRESENCE_UNAVAILABLE
75 75
76 if old_show == C.PRESENCE_UNAVAILABLE: 76 if old_show == C.PRESENCE_UNAVAILABLE:
77 watched = self.host.memory.getParamA(NAME, CATEGORY, profile_key=profile) 77 watched = self.host.memory.getParamA(NAME, CATEGORY, profile_key=profile)
78 if entity in watched or entity.userhostJID() in watched: 78 if entity in watched or entity.userhostJID() in watched:
79 self.host.actionNew({'xmlui': xml_tools.note(_(NOTIF).format(entity=entity.full())).toXml()}, profile) 79 self.host.actionNew({'xmlui': xml_tools.note(_(NOTIF).format(entity=entity.full())).toXml()}, profile=profile)
80 80
81 return True 81 return True