From 747a6e94e6039c1e349dafc22d1f3cd2baee6d02 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Mon, 15 Oct 2012 22:19:47 -0700 Subject: Auto-subscribe to whitelisted JIDs if auto_subscribe is true --- sleekxmpp/basexmpp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py index a1969e34..f26c048f 100644 --- a/sleekxmpp/basexmpp.py +++ b/sleekxmpp/basexmpp.py @@ -746,6 +746,8 @@ class BaseXMPP(XMLStream): item = self.roster[pres['to']][pres['from']] if item['whitelisted']: item.authorize() + if roster.auto_subscribe: + item.subscribe() elif roster.auto_authorize: item.authorize() if roster.auto_subscribe: -- cgit v1.2.3