Skip to content

Commit

Permalink
Merge pull request #424 from mtdowling/master
Browse files Browse the repository at this point in the history
Updating the RSS module to work with ZNC partyline
  • Loading branch information
Elad Alfassa committed Apr 29, 2014
2 parents 0779141 + 2832bc9 commit 2237ac7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions willie/modules/rss.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def _rss_add(self, bot, trigger, c):
"""
pattern = r'''
^\.rss\s+add
\s+([&#+!][^\s,]+) # channel
\s+([~&#+!][^\s,]+) # channel
\s+("[^"]+"|[\w-]+) # name, which can contain anything but quotes if quoted
\s+(\S+) # url
(?:\s+(\d+))? # foreground colour (optional)
Expand Down Expand Up @@ -224,7 +224,7 @@ def _rss_del(self, bot, trigger, c):
"""
pattern = r"""
^\.rss\s+del
(?:\s+([&#+!][^\s,]+))? # channel (optional)
(?:\s+([~&#+!][^\s,]+))? # channel (optional)
(?:\s+("[^"]+"|[\w-]+))? # name (optional)
"""
match = re.match(pattern, trigger.group(), re.IGNORECASE | re.VERBOSE)
Expand Down Expand Up @@ -264,7 +264,7 @@ def _toggle(self, bot, trigger, c):

pattern = r"""
^\.rss\s+(enable|disable) # command
(?:\s+([&#+!][^\s,]+))? # channel (optional)
(?:\s+([~&#+!][^\s,]+))? # channel (optional)
(?:\s+("[^"]+"|[\w-]+))? # name (optional)
"""
match = re.match(pattern, trigger.group(), re.IGNORECASE | re.VERBOSE)
Expand Down Expand Up @@ -295,7 +295,7 @@ def _rss_list(self, bot, trigger, c):
"""Get information on all feeds in the database. Usage: .rss list [#channel] [Feed_Name]"""
pattern = r"""
^\.rss\s+list
(?:\s+([&#+!][^\s,]+))? # channel (optional)
(?:\s+([~&#+!][^\s,]+))? # channel (optional)
(?:\s+("[^"]+"|[\w-]+))? # name (optional)
"""
match = re.match(pattern, trigger.group(), re.IGNORECASE | re.VERBOSE)
Expand Down

0 comments on commit 2237ac7

Please sign in to comment.