Reverted to the old tld mechanism since our regexps depend on English.

This commit is contained in:
Jeremy Fincher 2004-08-31 14:45:26 +00:00
parent 1f9979073c
commit 65c739d706

View File

@ -115,8 +115,8 @@ class Ebay(callbacks.PrivmsgCommandAndRegexp):
irc.reply(str(e)) irc.reply(str(e))
def ebaySnarfer(self, irc, msg, match): def ebaySnarfer(self, irc, msg, match):
r"http://cgi\.ebay\.(?:[a-z]+\.?)+/(?:.*?/)?(?:ws/)?" \ r"http://cgi\.ebay\.(?:com(?:\.au)?|co\.uk|ca)/.*" \
r"eBayISAPI\.dll\?ViewItem(?:&item=\d+|&category=\d+)+" r"eBayISAPI\.dll\?ViewItem(?:&(?:item|category)=\d+)+"
if not self.registryValue('auctionSnarfer', msg.args[0]): if not self.registryValue('auctionSnarfer', msg.args[0]):
return return
url = match.group(0) url = match.group(0)