From 4c52ad680ddda158c63643f63d6b18f6dd80afe3 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sun, 3 Oct 2004 09:26:37 +0000 Subject: [PATCH] Forgot an import. Odd that this didn't show up in my testing with lambdabot. --- plugins/Quakenet.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/plugins/Quakenet.py b/plugins/Quakenet.py index 4691a55ab..3241988f3 100644 --- a/plugins/Quakenet.py +++ b/plugins/Quakenet.py @@ -43,6 +43,7 @@ import supybot.conf as conf import supybot.utils as utils from supybot.commands import * import supybot.plugins as plugins +import supybot.ircutils as ircutils import supybot.privmsgs as privmsgs import supybot.registry as registry import supybot.callbacks as callbacks @@ -57,16 +58,13 @@ def configure(advanced): conf.registerPlugin('Quakenet', True) -try: - Password -except NameError: - class Password(registry.String): - """Value must be a string of 10 or fewer characters.""" - def setValue(self, s): - if len(s) > 10: - self.error() - else: - super(Password, self).setValue(s) +class Password(registry.String): + """Value must be a string of 10 or fewer characters.""" + def setValue(self, s): + if len(s) > 10: + self.error() + else: + registry.String.setValue(self, s) Quakenet = conf.registerPlugin('Quakenet') conf.registerGroup(Quakenet, 'Q')