Skip to content

Commit

Permalink
Fix URL excludes loading (#959)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
maxpowa committed Jan 5, 2016
1 parent ee86f38 commit 86ad755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sopel/modules/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -29,7 +29,7 @@

class UrlSection(StaticSection):
# TODO some validation rules maybe?
exclude = ValidatedAttribute('exclude')
exclude = ListAttribute('exclude')
exclusion_char = ValidatedAttribute('exclusion_char', default='!')


Expand Down

0 comments on commit 86ad755

Please sign in to comment.