#NEWLINE# @ defer . inlineCallbacks #NEWLINE# def check_user_id_not_appservice_exclusive( self , user_id , allowed_appservice = None ) : #NEWLINE# #INDENT# services = ( yield self . store . get_app_services ( ) ) #NEWLINE# interested_services = [ s for s in services if ( s . is_interested_in_user ( s ) and ( s != allowed_appservice ) ) ] #NEWLINE# for service in interested_services : #NEWLINE# #INDENT# if service . is_exclusive_user ( user_id ) : #NEWLINE# #INDENT# raise SynapseError ( 400 , 'This user ID is reserved by an application service.' , errcode = Codes . EXCLUSIVE )