diff src/core/sat_main.py @ 727:c1cd6c0c2c38

core: fixed statuses parameter in setPresence, and using @NONE@ instead of @DEFAULT@ for default profile_key
author Goffi <goffi@goffi.org>
date Tue, 10 Dec 2013 17:25:31 +0100
parents ab9620029aa8
children e07afabc4a25
line wrap: on
line diff
--- a/src/core/sat_main.py	Tue Dec 10 17:25:31 2013 +0100
+++ b/src/core/sat_main.py	Tue Dec 10 17:25:31 2013 +0100
@@ -550,8 +550,10 @@
         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