core: added Priority management
This commit is contained in:
parent
fc74cc35d0
commit
e7d83b8d27
1 changed files with 10 additions and 1 deletions
|
|
@ -295,7 +295,13 @@ class SatPresenceProtocol(xmppim.PresenceClientProtocol):
|
|||
# now it's time to notify frontends
|
||||
self.host.bridge.presenceUpdate(entity.full(), "unavailable", 0, statuses, self.parent.profile)
|
||||
|
||||
def available(self, entity=None, show=None, statuses=None, priority=0):
|
||||
def available(self, entity=None, show=None, statuses=None, priority=None):
|
||||
if priority is None:
|
||||
try:
|
||||
priority = int(self.host.memory.getParamA("Priority", "Connection", profile_key=self.parent.profile))
|
||||
except ValueError:
|
||||
priority = 0
|
||||
|
||||
if not statuses:
|
||||
statuses = {}
|
||||
# default for us is None for wokkel
|
||||
|
|
|
|||
Loading…
Reference in a new issue