mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-30 15:31:09 -05: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.
|
get info about an auction.
|
||||||
"""
|
"""
|
||||||
threaded = True
|
threaded = True
|
||||||
regexps = sets.Set(['ebaySnarfer'])
|
regexps = ['ebaySnarfer']
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
callbacks.PrivmsgCommandAndRegexp.__init__(self)
|
callbacks.PrivmsgCommandAndRegexp.__init__(self)
|
||||||
self.snarfer = True
|
self.snarfer = True
|
||||||
|
@ -68,8 +68,7 @@ example = utils.wrapLines("""
|
|||||||
|
|
||||||
class Gameknot(callbacks.PrivmsgCommandAndRegexp):
|
class Gameknot(callbacks.PrivmsgCommandAndRegexp):
|
||||||
threaded = True
|
threaded = True
|
||||||
regexps = sets.Set(['gameknotSnarfer', 'gameknotStatsSnarfer'])
|
regexps = ['gameknotSnarfer', 'gameknotStatsSnarfer']
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
callbacks.PrivmsgCommandAndRegexp.__init__(self)
|
callbacks.PrivmsgCommandAndRegexp.__init__(self)
|
||||||
self.snarfer = True
|
self.snarfer = True
|
||||||
|
@ -125,8 +125,8 @@ def pick(L, recursed=False):
|
|||||||
|
|
||||||
class MoobotFactoids(callbacks.PrivmsgCommandAndRegexp):
|
class MoobotFactoids(callbacks.PrivmsgCommandAndRegexp):
|
||||||
priority = 1000
|
priority = 1000
|
||||||
addressedRegexps = sets.Set(['addFactoid', 'changeFactoid',
|
addressedRegexps = ['changeFactoid', 'augmentFactoid',
|
||||||
'augmentFactoid', 'replaceFactoid'])
|
'replaceFactoid', 'addFactoid']
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
callbacks.PrivmsgCommandAndRegexp.__init__(self)
|
callbacks.PrivmsgCommandAndRegexp.__init__(self)
|
||||||
self.makeDB(dbfilename)
|
self.makeDB(dbfilename)
|
||||||
|
@ -75,7 +75,7 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
project's most recent bugs and rfes.
|
project's most recent bugs and rfes.
|
||||||
"""
|
"""
|
||||||
threaded = True
|
threaded = True
|
||||||
regexps = sets.Set(['sfSnarfer'])
|
regexps = ['sfSnarfer']
|
||||||
|
|
||||||
_infoRe = re.compile(r'<td nowrap>(\d+)</td><td><a href="([^"]+)">'\
|
_infoRe = re.compile(r'<td nowrap>(\d+)</td><td><a href="([^"]+)">'\
|
||||||
'([^<]+)</a>', re.I)
|
'([^<]+)</a>', re.I)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user