mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Made ordering in PrivmsgCommandAndRegexp depend on the list of regexp-methods.
This commit is contained in:
parent
7a1130cc28
commit
9cb41e6420
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user