| 
														
															@@ -2660,13 +2660,17 @@ class PlanetUpScript(object): 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 self.queue_player.put("0\r") 
														 | 
														
														 | 
														
															                 self.queue_player.put("0\r") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if re.match(r"Command \[TL=.* \(\?=Help\)\? :", prompt): 
														 | 
														
														 | 
														
															             if re.match(r"Command \[TL=.* \(\?=Help\)\? :", prompt): 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 # Ok, return to the planet... 
														 | 
														
														 | 
														
															                 # Ok, return to the planet... 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                self.queue_player.put("{0}\rE".format(self.planet_sector)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                _, _, part = prompt.partition("]:[") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                sector, _, _ = part.partition("]") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                if sector != self.planet_sector: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    log.info("{0} is {1}".format(sector, self.planet_sector)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    self.queue_player.put("{0}\rE".format(self.planet_sector)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                else: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    log.info("{0} is not {1}".format(sector, self.planet_sector)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    self.queue_player.put("\r") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 self.state = 9 
														 | 
														
														 | 
														
															                 self.state = 9 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         elif self.state == 9: 
														 | 
														
														 | 
														
															         elif self.state == 9: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             log.info("prompt9 {0} : {1}".format(self.state, prompt)) 
														 | 
														
														 | 
														
															             log.info("prompt9 {0} : {1}".format(self.state, prompt)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            if prompt.startswith("Please enter a destination for this probe :"): 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                # Oops, this seems to happen when the port is in the same sector as the planet we are upgrading! 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                self.queue_player.put("\r") 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if re.match(r"Command \[TL=.* \(\?=Help\)\? :", prompt): 
														 | 
														
														 | 
														
															             if re.match(r"Command \[TL=.* \(\?=Help\)\? :", prompt): 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 # land 
														 | 
														
														 | 
														
															                 # land 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 self.queue_player.put("L") 
														 | 
														
														 | 
														
															                 self.queue_player.put("L") 
														 |