diff --git a/bugzilla.py b/bugzilla.py index fc769745bc..4b4dd33687 100644 --- a/bugzilla.py +++ b/bugzilla.py @@ -29,7 +29,7 @@ def configure(config): def setup(willie): regexes = [] if willie.config.has_option('bugzilla', 'domains'): - for domain in willie.config.bugzilla.domains: + for domain in willie.config.bugzilla.get_list(domains): regex = re.compile('%s/show_bug.cgi\?\S*?id=(\d+)' % domain) regexes.append(regex) else: @@ -46,7 +46,7 @@ def setup(willie): def show_bug(willie, trigger): """Show information about a Bugzilla bug.""" domain = trigger.group(1) - if domain not in willie.config.bugzilla.domains: + if domain not in willie.config.bugzilla.get_list('domains'): return url = 'https://%s%sctype=xml&%s' % trigger.groups() data = web.get(url) diff --git a/url.py b/url.py index 03fb8f5462..aaa683dd1f 100644 --- a/url.py +++ b/url.py @@ -37,7 +37,8 @@ def configure(config): def setup(willie): global url_finder, exclusion_char if willie.config.has_option('url', 'exclude'): - regexes = [re.compile(s) for s in willie.config.url.exclude] + regexes = [re.compile(s) for s in + willie.config.url.get_list(exclude)] else: regexes = []