diff --git a/src/core/sat_main.py b/src/core/sat_main.py index b9759404..1c8802c3 100644 --- a/src/core/sat_main.py +++ b/src/core/sat_main.py @@ -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