From c0074f95b160f4766168ed2cae955709bf38d124 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Wed, 11 Jan 2012 16:39:55 -0800 Subject: update_caps() can now do presence broadcasting. As part of adding this feature: - fixed bug in update_caps() not assigning verstrings - fixed xep_0004 typo - can now use None as a roster key which will map to boundjid.bare - fixed using JID objects in disco node handlers - fixed failing test related to get_roster Several of these bugs I've fixed before, so I either didn't push them earlier, or I clobbered something when merging. *shrug* --- sleekxmpp/roster/multi.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sleekxmpp/roster/multi.py') diff --git a/sleekxmpp/roster/multi.py b/sleekxmpp/roster/multi.py index 36c7e2ad..28876814 100644 --- a/sleekxmpp/roster/multi.py +++ b/sleekxmpp/roster/multi.py @@ -68,6 +68,8 @@ class Roster(object): """ if isinstance(key, JID): key = key.bare + if key is None: + key = self.xmpp.boundjid.bare if key not in self._rosters: self.add(key) self._rosters[key].auto_authorize = self.auto_authorize -- cgit v1.2.3