diff --git a/.gitignore b/.gitignore index 3abe6ab..b6afb48 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ resources/* !resources/.gitkeep venv/ .vim/ +__pycache__/ diff --git a/edmond/plugins/youtube_parser.py b/edmond/plugins/youtube_parser.py index 3104dff..a5b3a05 100644 --- a/edmond/plugins/youtube_parser.py +++ b/edmond/plugins/youtube_parser.py @@ -33,6 +33,8 @@ class YoutubeParserPlugin(Plugin): self.is_ready = False def on_pubmsg(self, event): + if not self.respects_handling_conditions(): + return False words = event.arguments[0].split() for word in words: match = self.VIDEO_URL_RE.match(word)