Auto-subscribe to whitelisted JIDs if auto_subscribe is true

This commit is contained in:
Lance Stout 2012-10-15 22:19:47 -07:00
parent cebc798e72
commit 747a6e94e6

View file

@ -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: