From 9cb41e6420533d0e4e7c00bb2fb9a69389afda59 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 21 Oct 2003 21:10:20 +0000 Subject: [PATCH] Made ordering in PrivmsgCommandAndRegexp depend on the list of regexp-methods. --- plugins/Ebay.py | 3 +-- plugins/Gameknot.py | 3 +-- plugins/MoobotFactoids.py | 4 ++-- plugins/Sourceforge.py | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/plugins/Ebay.py b/plugins/Ebay.py index 0de0b3207..26983b2a2 100644 --- a/plugins/Ebay.py +++ b/plugins/Ebay.py @@ -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 diff --git a/plugins/Gameknot.py b/plugins/Gameknot.py index b6c7c21e8..0334aa4cf 100644 --- a/plugins/Gameknot.py +++ b/plugins/Gameknot.py @@ -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 diff --git a/plugins/MoobotFactoids.py b/plugins/MoobotFactoids.py index 4cf2ff820..da4ab9a70 100644 --- a/plugins/MoobotFactoids.py +++ b/plugins/MoobotFactoids.py @@ -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) diff --git a/plugins/Sourceforge.py b/plugins/Sourceforge.py index 256111506..aed264b32 100644 --- a/plugins/Sourceforge.py +++ b/plugins/Sourceforge.py @@ -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'(\d+)'\ '([^<]+)', re.I)