mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 15:44:06 +01:00
Changed snarer to auction-snarfer.
This commit is contained in:
parent
c37b775867
commit
8dea8d47ae
@ -72,7 +72,7 @@ class Ebay(callbacks.PrivmsgCommandAndRegexp, plugins.Configurable):
|
|||||||
threaded = True
|
threaded = True
|
||||||
regexps = ['ebaySnarfer']
|
regexps = ['ebaySnarfer']
|
||||||
configurables = plugins.ConfigurableDictionary(
|
configurables = plugins.ConfigurableDictionary(
|
||||||
[('snarfer', plugins.ConfigurableBoolType, True,
|
[('auction-snarfer', plugins.ConfigurableBoolType, True,
|
||||||
"""Determines whether the bot will automatically 'snarf' Ebay auction
|
"""Determines whether the bot will automatically 'snarf' Ebay auction
|
||||||
URLs and print information about them.""")]
|
URLs and print information about them.""")]
|
||||||
)
|
)
|
||||||
@ -128,7 +128,7 @@ class Ebay(callbacks.PrivmsgCommandAndRegexp, plugins.Configurable):
|
|||||||
def ebaySnarfer(self, irc, msg, match):
|
def ebaySnarfer(self, irc, msg, match):
|
||||||
r"http://cgi\.ebay\.(?:com(?:.au)?|ca|co.uk)/(?:.*?/)?(?:ws/)?" \
|
r"http://cgi\.ebay\.(?:com(?:.au)?|ca|co.uk)/(?:.*?/)?(?:ws/)?" \
|
||||||
r"eBayISAPI\.dll\?ViewItem(?:&item=\d+|&category=\d+)+"
|
r"eBayISAPI\.dll\?ViewItem(?:&item=\d+|&category=\d+)+"
|
||||||
if not self.configurables.get('snarfer', channel=msg.args[0]):
|
if not self.configurables.get('auction-snarfer', channel=msg.args[0]):
|
||||||
return
|
return
|
||||||
url = match.group(0)
|
url = match.group(0)
|
||||||
#debug.printf(url)
|
#debug.printf(url)
|
||||||
|
Loading…
Reference in New Issue
Block a user