Forgot an import. Odd that this didn't show up in my testing with lambdabot.

This commit is contained in:
Jeremy Fincher 2004-10-03 09:26:37 +00:00
parent a73348f962
commit 4c52ad680d

View File

@ -43,6 +43,7 @@ import supybot.conf as conf
import supybot.utils as utils import supybot.utils as utils
from supybot.commands import * from supybot.commands import *
import supybot.plugins as plugins import supybot.plugins as plugins
import supybot.ircutils as ircutils
import supybot.privmsgs as privmsgs import supybot.privmsgs as privmsgs
import supybot.registry as registry import supybot.registry as registry
import supybot.callbacks as callbacks import supybot.callbacks as callbacks
@ -57,16 +58,13 @@ def configure(advanced):
conf.registerPlugin('Quakenet', True) conf.registerPlugin('Quakenet', True)
try: class Password(registry.String):
Password
except NameError:
class Password(registry.String):
"""Value must be a string of 10 or fewer characters.""" """Value must be a string of 10 or fewer characters."""
def setValue(self, s): def setValue(self, s):
if len(s) > 10: if len(s) > 10:
self.error() self.error()
else: else:
super(Password, self).setValue(s) registry.String.setValue(self, s)
Quakenet = conf.registerPlugin('Quakenet') Quakenet = conf.registerPlugin('Quakenet')
conf.registerGroup(Quakenet, 'Q') conf.registerGroup(Quakenet, 'Q')