core: fixed statuses parameter in setPresence, and using @NONE@ instead of @DEFAULT@ for default profile_key
This commit is contained in:
parent
2ad1019de7
commit
05bf17c777
1 changed files with 3 additions and 1 deletions
|
|
@ -550,8 +550,10 @@ class SAT(service.Service):
|
|||
treatments.addCallback(sendAndStore)
|
||||
treatments.callback(mess_data)
|
||||
|
||||
def setPresence(self, to="", show="", priority=0, statuses={}, profile_key='@DEFAULT@'):
|
||||
def setPresence(self, to="", show="", priority=0, statuses=None, profile_key='@NONE@'):
|
||||
"""Send our presence information"""
|
||||
if statuses is None:
|
||||
statuses = {}
|
||||
profile = self.memory.getProfileName(profile_key)
|
||||
assert(profile)
|
||||
to_jid = jid.JID(to) if to else None
|
||||
|
|
|
|||
Loading…
Reference in a new issue