diff options
| author | 2016-05-01 22:47:59 +0100 | |
|---|---|---|
| committer | 2016-05-01 22:47:59 +0100 | |
| commit | bdf21643a3825c6f881275aa05a44dbe6e98ac55 (patch) | |
| tree | 208e0d7c691d09e82775333c164fe897410c19ac /modules/youtube.py | |
| parent | added a command to quotes.py to get a random quote from a category. (diff) | |
made set/channelset settings consistent.
Diffstat (limited to 'modules/youtube.py')
| -rw-r--r-- | modules/youtube.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/youtube.py b/modules/youtube.py index e14f9118..d4567a34 100644 --- a/modules/youtube.py +++ b/modules/youtube.py @@ -28,7 +28,7 @@ class Module(object): def boot_done(self, event): self.bot.events.on("postboot").on("configure").on( - "channelset").call(setting="autoyoutube", + "channelset").call(setting="auto-youtube", help="Disable/Enable automatically getting info from youtube URLs", validate=Utils.bool_or_none) @@ -99,7 +99,7 @@ class Module(object): def channel_message(self, event): match = re.search(REGEX_YOUTUBE, event["message"]) - if match and event["channel"].get_setting("autoyoutube", False): + if match and event["channel"].get_setting("auto-youtube", False): youtube_id = match.group(1) video_details = self.video_details(youtube_id) if video_details: |
