From 94fb0dde9fd85bf58afe68169e81e78e8ac99a82 Mon Sep 17 00:00:00 2001 From: Max Gurela Date: Tue, 5 Jan 2016 09:36:26 -0800 Subject: [PATCH] Fix URL excludes loading (#959) setup uses it as a list, and in previous versions of sopel it was a list, but in the UrlSection it's defined as a ValidatedAttribute. This was causing each character in the excludes list to be parsed as a regex exclude. Switching to ListAttribute fixes the issue. --- sopel/modules/url.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sopel/modules/url.py b/sopel/modules/url.py index e18f84cb6a..ae77885e6d 100644 --- a/sopel/modules/url.py +++ b/sopel/modules/url.py @@ -10,7 +10,7 @@ import re from sopel import web, tools from sopel.module import commands, rule, example -from sopel.config.types import ValidatedAttribute, StaticSection +from sopel.config.types import ValidatedAttribute, ListAttribute, StaticSection url_finder = None @@ -29,7 +29,7 @@ class UrlSection(StaticSection): # TODO some validation rules maybe? - exclude = ValidatedAttribute('exclude') + exclude = ListAttribute('exclude') exclusion_char = ValidatedAttribute('exclusion_char', default='!')