Auto-subscribe to whitelisted JIDs if auto_subscribe is true
This commit is contained in:
parent
cebc798e72
commit
747a6e94e6
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue