Ignore users ignored from !youtube for auto-youtube
This commit is contained in:
parent
5dd019d79f
commit
9bdd28ce60
1 changed files with 5 additions and 0 deletions
|
@ -130,6 +130,11 @@ class Module(ModuleManager.BaseModule):
|
||||||
def channel_message(self, event):
|
def channel_message(self, event):
|
||||||
match = re.search(REGEX_YOUTUBE, event["message"])
|
match = re.search(REGEX_YOUTUBE, event["message"])
|
||||||
if match and event["channel"].get_setting("auto-youtube", False):
|
if match and event["channel"].get_setting("auto-youtube", False):
|
||||||
|
is_ignored_f = short_url = self.exports.get_one("is-ignored",
|
||||||
|
lambda _1, _2: False)
|
||||||
|
if is_ignored_f(event["server"], event["user"], "youtube"):
|
||||||
|
return
|
||||||
|
|
||||||
youtube_id = match.group(1)
|
youtube_id = match.group(1)
|
||||||
video_details = self.video_details(youtube_id)
|
video_details = self.video_details(youtube_id)
|
||||||
if video_details:
|
if video_details:
|
||||||
|
|
Loading…
Reference in a new issue