Auto-subscribe to whitelisted JIDs if auto_subscribe is true
This commit is contained in:
		| @@ -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: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Lance Stout
					Lance Stout