primitivus: fix setting the presence and status
This commit is contained in:
parent
fdad3cf3c9
commit
e10070f923
1 changed files with 10 additions and 1 deletions
|
|
@ -354,6 +354,13 @@ class SatPresenceProtocol(xmppim.PresenceClientProtocol):
|
|||
self.host.bridge.presenceUpdate(entity.full(), "unavailable", 0, statuses, self.parent.profile)
|
||||
|
||||
def available(self, entity=None, show=None, statuses=None, priority=None):
|
||||
"""Set a presence and statuses.
|
||||
|
||||
@param entity (jid.JID): entity
|
||||
@param show (unicode): value in ('unavailable', '', 'away', 'xa', 'chat', 'dnd')
|
||||
@param statuses (dict{unicode: unicode}): multilingual statuses with
|
||||
the entry key beeing a language code on 2 characters or "default".
|
||||
"""
|
||||
if priority is None:
|
||||
try:
|
||||
priority = int(self.host.memory.getParamA("Priority", "Connection", profile_key=self.parent.profile))
|
||||
|
|
|
|||
Loading…
Reference in a new issue