Made ordering in PrivmsgCommandAndRegexp depend on the list of regexp-methods.

This commit is contained in:
Jeremy Fincher 2003-10-21 21:10:20 +00:00
parent 7a1130cc28
commit 9cb41e6420
4 changed files with 5 additions and 7 deletions

View File

@ -66,8 +66,7 @@ class Ebay(callbacks.PrivmsgCommandAndRegexp):
get info about an auction.
"""
threaded = True
regexps = sets.Set(['ebaySnarfer'])
regexps = ['ebaySnarfer']
def __init__(self):
callbacks.PrivmsgCommandAndRegexp.__init__(self)
self.snarfer = True

View File

@ -68,8 +68,7 @@ example = utils.wrapLines("""
class Gameknot(callbacks.PrivmsgCommandAndRegexp):
threaded = True
regexps = sets.Set(['gameknotSnarfer', 'gameknotStatsSnarfer'])
regexps = ['gameknotSnarfer', 'gameknotStatsSnarfer']
def __init__(self):
callbacks.PrivmsgCommandAndRegexp.__init__(self)
self.snarfer = True

View File

@ -125,8 +125,8 @@ def pick(L, recursed=False):
class MoobotFactoids(callbacks.PrivmsgCommandAndRegexp):
priority = 1000
addressedRegexps = sets.Set(['addFactoid', 'changeFactoid',
'augmentFactoid', 'replaceFactoid'])
addressedRegexps = ['changeFactoid', 'augmentFactoid',
'replaceFactoid', 'addFactoid']
def __init__(self):
callbacks.PrivmsgCommandAndRegexp.__init__(self)
self.makeDB(dbfilename)

View File

@ -75,7 +75,7 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp):
project's most recent bugs and rfes.
"""
threaded = True
regexps = sets.Set(['sfSnarfer'])
regexps = ['sfSnarfer']
_infoRe = re.compile(r'<td nowrap>(\d+)</td><td><a href="([^"]+)">'\
'([^<]+)</a>', re.I)