From fc72c88d99d10a6e3a8a9e2b7e59006ee180a5c1 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 30 Sep 2004 08:41:07 +0000 Subject: [PATCH] Fixed the failing RSS test, yay. --- plugins/RSS.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/RSS.py b/plugins/RSS.py index df3786d6c..662370a68 100644 --- a/plugins/RSS.py +++ b/plugins/RSS.py @@ -281,7 +281,8 @@ class RSS(callbacks.Privmsg): assert name == self._validFeedName(name) if url not in self.locks: self.locks[url] = threading.RLock() - if hasattr(self.__class__, name): + if hasattr(self.__class__, name) and \ + not hasattr(getattr(self, name), 'url'): s = 'I already have a command in this plugin named %s.' % name raise callbacks.Error, s def f(self, irc, msg, args):