Auto-subscribe to whitelisted JIDs if auto_subscribe is true
This commit is contained in:
parent
cebc798e72
commit
747a6e94e6
@ -746,6 +746,8 @@ class BaseXMPP(XMLStream):
|
|||||||
item = self.roster[pres['to']][pres['from']]
|
item = self.roster[pres['to']][pres['from']]
|
||||||
if item['whitelisted']:
|
if item['whitelisted']:
|
||||||
item.authorize()
|
item.authorize()
|
||||||
|
if roster.auto_subscribe:
|
||||||
|
item.subscribe()
|
||||||
elif roster.auto_authorize:
|
elif roster.auto_authorize:
|
||||||
item.authorize()
|
item.authorize()
|
||||||
if roster.auto_subscribe:
|
if roster.auto_subscribe:
|
||||||
|
Loading…
Reference in New Issue
Block a user