- matches = re.findall("(https?://[^\s>]+)", msg)
- url_count = 0
- for i in range(len(matches)):
- if handle_url(matches[i], notice):
- url_count += 1
- if url_count == 3:
- notice("maximum number of urls to parse per message "
- "reached")
- break
+ if self.show_page_titles:
+ matches = re.findall("(https?://[^\s>]+)", msg)
+ url_count = 0
+ for i in range(len(matches)):
+ if handle_url(matches[i], notice):
+ url_count += 1
+ if url_count == 3:
+ notice("maximum number of urls to parse per "
+ "message reached")
+ break